]> git.pld-linux.org Git - packages/anacron.git/commitdiff
- run chkconfig --del only on remove, not upgrade
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 24 Sep 2001 09:34:14 +0000 (09:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anacron.spec -> 1.17

anacron.spec

index b7f214f879c0ccca4565d930e3d92102117a3dc5..669de85528c6d34da64864011278340715ec5543 100644 (file)
@@ -76,6 +76,9 @@ done
 
 gzip -9nf ChangeLog README TODO
 
 
 gzip -9nf ChangeLog README TODO
 
+%clean 
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add anacron
 
 %post
 /sbin/chkconfig --add anacron
 
@@ -86,7 +89,6 @@ else
 fi
 
 %preun
 fi
 
 %preun
-/sbin/chkconfig --del anacron
 if [ "$1" = "0" ];then
        if [ -f /var/lock/subsys/anacron ]; then
                /etc/rc.d/init.d/anacron stop >&2
 if [ "$1" = "0" ];then
        if [ -f /var/lock/subsys/anacron ]; then
                /etc/rc.d/init.d/anacron stop >&2
@@ -94,12 +96,9 @@ if [ "$1" = "0" ];then
        /sbin/chkconfig --del anacron
 fi
 
        /sbin/chkconfig --del anacron
 fi
 
-%clean 
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog* COPYING* README* TODO*
+%doc ChangeLog* README* TODO*
 %attr(755,root,root) %{_sbindir}/anacron
 %attr(754,root,root) /etc/rc.d/init.d/*
 %config %{_sysconfdir}/anacrontab
 %attr(755,root,root) %{_sbindir}/anacron
 %attr(754,root,root) /etc/rc.d/init.d/*
 %config %{_sysconfdir}/anacrontab
This page took 0.060555 seconds and 4 git commands to generate.