[med-svn] r8758 - trunk/packages/dcmtk/trunk/debian
Andreas Tille
tille at alioth.debian.org
Sun Dec 4 22:39:51 UTC 2011
Author: tille
Date: 2011-12-04 22:39:51 +0000 (Sun, 04 Dec 2011)
New Revision: 8758
Modified:
trunk/packages/dcmtk/trunk/debian/changelog
trunk/packages/dcmtk/trunk/debian/dcmtk.postrm
trunk/packages/dcmtk/trunk/debian/dcmtk.prerm
Log:
TODO: solve riddly, why purge is never executed :-(
Modified: trunk/packages/dcmtk/trunk/debian/changelog
===================================================================
--- trunk/packages/dcmtk/trunk/debian/changelog 2011-12-04 13:41:51 UTC (rev 8757)
+++ trunk/packages/dcmtk/trunk/debian/changelog 2011-12-04 22:39:51 UTC (rev 8758)
@@ -1,5 +1,10 @@
dcmtk (3.6.0-10) UNRELEASED; urgency=low
+TODO: get rid of debug code in dcmtk.{post,pre}rm and finally
+find out why purge is never called (I tried dpkg --purge dcmtk;
+apt-get --purge remove dcmtk etc. - and went always through
+remove branch
+
* debian/dcmtk.prerm: when purging dirs in /var/lib need to be
removed in advance
Modified: trunk/packages/dcmtk/trunk/debian/dcmtk.postrm
===================================================================
--- trunk/packages/dcmtk/trunk/debian/dcmtk.postrm 2011-12-04 13:41:51 UTC (rev 8757)
+++ trunk/packages/dcmtk/trunk/debian/dcmtk.postrm 2011-12-04 22:39:51 UTC (rev 8758)
@@ -15,5 +15,18 @@
fi
fi
+if [ "$1" = "purge" ] ; then
+ if [ -d /var/lib/dcmtk/db ]; then
+ echo "POST: Remove previousely created directories"
+ rm -rf /var/lib/dcmtk/db
+ rm -rf /var/lib/dcmtk
+ else
+ echo "POST: Nothing to remove ($@)"
+ fi
+else
+ echo "POST: That's not purge ($@)"
+fi
+
+
#DEBHELPER#
Modified: trunk/packages/dcmtk/trunk/debian/dcmtk.prerm
===================================================================
--- trunk/packages/dcmtk/trunk/debian/dcmtk.prerm 2011-12-04 13:41:51 UTC (rev 8757)
+++ trunk/packages/dcmtk/trunk/debian/dcmtk.prerm 2011-12-04 22:39:51 UTC (rev 8758)
@@ -12,9 +12,14 @@
if [ "$1" = "purge" ] ; then
if [ -d /var/lib/dcmtk/db ]; then
- rmdir /var/lib/dcmtk/db
- rmdir /var/lib/dcmtk
+ echo "PRE: Remove previousely created directories"
+ rm -rf /var/lib/dcmtk/db
+ rm -rf /var/lib/dcmtk
+ else
+ echo "PRE: Nothing to remove ($@)"
fi
+else
+ echo "PRE: That's not purge ($@)"
fi
#DEBHELPER#
More information about the debian-med-commit
mailing list