Heya,

Michael Ablassmeier <[EMAIL PROTECTED]> writes:
> while running archive wide piuparts tests your package failed on purge
> because of wwwconfig-common beeing unavailable during postrm:
[...]

I have NMUed this, as we (ie the release team) didn't want to ignore
this bug for etch, but don't have much time before the release is going
to be out. Sorry for the rush.

Patch attached.

Marc
-- 
Fachbegriffe der Informatik - Einfach erklärt
108: Doppelte Staatsbürgerschaft
       Was nützt der zweite Ausweis, wenn doch eh der gleiche Name drin steht?
       (E. Herbst nach Harald Schmidt)

diff -u zoph-0.6/debian/changelog zoph-0.6/debian/changelog
--- zoph-0.6/debian/changelog
+++ zoph-0.6/debian/changelog
@@ -1,3 +1,12 @@
+zoph (0.6-2.1) unstable; urgency=high
+
+  * NMU to fix rc bug
+  * Only call wwwconfig-common tools when they are actually still
+    installed, fixing possible problems when purging the package
+    after removal of wwwconfig-common. (Closes: #417259)
+
+ -- Marc 'HE' Brockschmidt <[EMAIL PROTECTED]>  Mon,  2 Apr 2007 23:21:11 +0200
+
 zoph (0.6-2) unstable; urgency=low
 
   * prefer apache2 over apache in Depends: and allow PHP5 (Closes: #376687)
diff -u zoph-0.6/debian/postrm zoph-0.6/debian/postrm
--- zoph-0.6/debian/postrm
+++ zoph-0.6/debian/postrm
@@ -33,9 +33,11 @@
          case "$1" in
            purge)
              # remove zoph directives
-             . /usr/share/wwwconfig-common/apache-uninclude_all.sh
-             if [ "$status" = "purge" ] ; then
-               restart="$restart $server"
+             if [ -r /usr/share/wwwconfig-common/apache-uninclude_all.sh ]; then
+                 . /usr/share/wwwconfig-common/apache-uninclude_all.sh
+                 if [ "$status" = "purge" ] ; then
+                   restart="$restart $server"
+                 fi
              fi
              ;;
            remove)
@@ -47,9 +49,11 @@
              ;;
          esac
 
-         # restart servers if necessary
-         servers="apache-ssl apache apache2"
-         . /usr/share/wwwconfig-common/restart.sh
+         # reistart servers if necessary
+         if [ -r /usr/share/wwwconfig-common/restart.sh ]; then
+             servers="apache-ssl apache apache2"
+             . /usr/share/wwwconfig-common/restart.sh
+         fi
 
          # remove zoph config if purging
          if [ $1 = "purge" ] ; then

Attachment: pgppAMmkfuv1J.pgp
Description: PGP signature

Reply via email to