SPECS: oprofile.spec - cleanup on pkg removal, not on upgrades
glen
glen at pld-linux.org
Tue May 13 13:15:26 CEST 2008
Author: glen Date: Tue May 13 11:15:26 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- cleanup on pkg removal, not on upgrades
---- Files affected:
SPECS:
oprofile.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: SPECS/oprofile.spec
diff -u SPECS/oprofile.spec:1.28 SPECS/oprofile.spec:1.29
--- SPECS/oprofile.spec:1.28 Tue May 13 12:52:43 2008
+++ SPECS/oprofile.spec Tue May 13 13:15:21 2008
@@ -76,8 +76,10 @@
rm -rf $RPM_BUILD_ROOT
%preun
-%{_bindir}/opcontrol --shutdown 2>/dev/null 1>&2
-rm -rf %{_var}/lib/oprofile/*
+if [ "$1" = 0 ]; then
+ %{_bindir}/opcontrol --shutdown 2>/dev/null 1>&2
+ rm -rf %{_var}/lib/oprofile/*
+fi
%files
%defattr(644,root,root,755)
@@ -98,6 +100,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2008-05-13 11:15:21 glen
+- cleanup on pkg removal, not on upgrades
+
Revision 1.28 2008-05-13 10:52:43 pluto
- release 8 for rebuild with new binutils.
- pack and clean /var/lib/oprofile.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/oprofile.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list