[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force SVN commit: rev 374 - trunk/debian



Author: branden
Date: 2003-08-07 13:22:26 -0500 (Thu, 07 Aug 2003)
New Revision: 374

Modified:
   trunk/debian/changelog
   trunk/debian/xserver-common.postrm.in
Log:
debian/xserver-common.postrm.in: remove the /var/lib/xserver-common
  directory and its contents on package purge


Modified: trunk/debian/changelog
==============================================================================
--- trunk/debian/changelog	2003-08-07 17:11:38 UTC (rev 373)
+++ trunk/debian/changelog	2003-08-07 18:22:26 UTC (rev 374)
@@ -155,6 +155,8 @@
         stored checksum (indicating that the file hasn't changed since we last
         touched it); and
       + the newly written file actually differs from the existing one
+    - debian/xserver-common.postrm.in: remove the /var/lib/xserver-common
+      directory and its contents on package purge
     With luck, this new approach will meet with less anger and hatred from
     people who do not read fully-capitalized warnings within the files they
     are editing, let alone a manual page.

Modified: trunk/debian/xserver-common.postrm.in
==============================================================================
--- trunk/debian/xserver-common.postrm.in	2003-08-07 17:11:38 UTC (rev 373)
+++ trunk/debian/xserver-common.postrm.in	2003-08-07 18:22:26 UTC (rev 374)
@@ -24,9 +24,11 @@
 exit 0
 
 if [ "$1" = "purge" ]; then
-  if [ -d /etc/X11/xserver ]; then
-    rm -r /etc/X11/xserver
-  fi
+  for DIR in /etc/X11/xserver "/var/lib/$THIS_PACKAGE"; do
+    if [ -d "$DIR" ]; then
+      rm -r "$DIR"
+    fi
+  done
 fi
 
 # vim:set ai et sts=2 sw=2 tw=0:



Reply to: