[Pkg-corba-commits] r13 - /trunk/omniorb4/debian/omniorb4-nameserver.postrm

flub-guest at users.alioth.debian.org flub-guest at users.alioth.debian.org
Sun Sep 30 20:28:31 UTC 2007


Author: flub-guest
Date: Sun Sep 30 20:28:31 2007
New Revision: 13

URL: http://svn.debian.org/wsvn/pkg-corba/?sc=1&rev=13
Log:
Do not remove the omniNames db unless the package is being purged.
The old behaviour removed the omniNames db on every upgrade etc which
is not very kind.

Modified:
    trunk/omniorb4/debian/omniorb4-nameserver.postrm

Modified: trunk/omniorb4/debian/omniorb4-nameserver.postrm
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/omniorb4/debian/omniorb4-nameserver.postrm?rev=13&op=diff
==============================================================================
--- trunk/omniorb4/debian/omniorb4-nameserver.postrm (original)
+++ trunk/omniorb4/debian/omniorb4-nameserver.postrm Sun Sep 30 20:28:31 2007
@@ -3,12 +3,15 @@
 
 set -e
 
+LIBDIR=/var/lib/omniorb4-nameserver/
+
 case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-	rm -f /var/log/omninames-* > /dev/null 2>&1 || /bin/true
-        rm -rf /var/lib/omniorb-nameserver/ > /dev/null 2>&1 || /bin/true
+    purge)
+        rm -rf $LIBDIR > /dev/null 2>&1 || /bin/true
         ;;
-
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        /bin/true
+        ;;
     *)
         echo "postrm called with unknown argument \`$1'" >&2
         exit 1




More information about the Pkg-corba-commits mailing list