]> granicus.if.org Git - graphviz/commitdiff
only rm config if there is no dot executable after rpm update
authorellson <devnull@localhost>
Mon, 30 Jan 2006 23:45:06 +0000 (23:45 +0000)
committerellson <devnull@localhost>
Mon, 30 Jan 2006 23:45:06 +0000 (23:45 +0000)
graphviz.spec.in

index e17bee132b1e5f8fda0cb56ca02b5ac134e4314e..06547287444e4d4ee99a43c88f83e14e8b49cf1d 100644 (file)
@@ -405,8 +405,9 @@ rm -rf $RPM_BUILD_ROOT
 %post
 %{_bindir}/dot -c
 
-%preun
-rm -f %{_libdir}/%{name}/config
+# if there is not dot after everything else is done, the remove config
+%postun
+if ! test -x %{_bindir}/dot; then rm -f %{_libdir}/%{name}/config; fi
 
 %changelog
 * Tue Sep 13 2005 John Ellson <ellson@research.att.com>