]> git.pld-linux.org Git - packages/rlocate.git/commitdiff
fix broken uninstall master
authorElan Ruusamäe <glen@delfi.ee>
Sun, 25 Sep 2016 08:57:03 +0000 (11:57 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 25 Sep 2016 08:57:03 +0000 (11:57 +0300)
rlocate.spec

index d7afb08a7b9f7f33207955b2cc3e5b27fe48e2f5..6c8022cabea90fb2a48ac78cd9342496f038e18e 100644 (file)
@@ -3,6 +3,7 @@
 # - device: installed with static major, module creates as dynamic => use udev
 # - should provide something like virtual(locate), obsolete other implementations
 # - conflicts: rlocate gid with slocate
+# - pldize initscript
 #
 # Conditional build:
 %bcond_without kernel          # don't build kernel modules
@@ -40,7 +41,7 @@ Conflicts:    slocate
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-rlocate is an implementation of the ``locate'' command that is always
+rlocate is an implementation of the locate command that is always
 up-to-date. The database that the original locate uses is usually
 updated only once a day, so newer files cannot be located right away.
 The behavior of rlocate is the same as slocate, but it also maintains
@@ -128,13 +129,15 @@ fi
 /sbin/chkconfig --add %{name}
 %service %{name} restart
 
+%preun
+if [ "$1" = "0" ]; then
+       %service -q %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
+
 %postun
 if [ "$1" = "0" ]; then
        %groupremove rlocate
-else
-if [ "$1" = "0" ]; then
-        %service -q %{name} stop
-        /sbin/chkconfig --del %{name}
 fi
 
 %if %{with userspace}
This page took 0.10282 seconds and 4 git commands to generate.