r69069 - in /trunk/w3c-linkchecker/debian: changelog postinst

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Sat Feb 19 11:47:19 UTC 2011


Author: periapt-guest
Date: Sat Feb 19 11:47:07 2011
New Revision: 69069

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=69069
Log:
more experiments

Modified:
    trunk/w3c-linkchecker/debian/changelog
    trunk/w3c-linkchecker/debian/postinst

Modified: trunk/w3c-linkchecker/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/w3c-linkchecker/debian/changelog?rev=69069&op=diff
==============================================================================
--- trunk/w3c-linkchecker/debian/changelog (original)
+++ trunk/w3c-linkchecker/debian/changelog Sat Feb 19 11:47:07 2011
@@ -1,10 +1,4 @@
 w3c-linkchecker (4.6-1) UNRELEASED; urgency=low
-
-  TODOs and QUESTIONs:
-  - postinst: question: do we need the restart or is a reload enough?               
-  - I guess there should be a prerm to do something with apache if the package is
-    removed/purged?
-  - config: maybe I'm wrong but is this asked on every upgrade?
 
   * Starting again from scratch (Closes: #590079) after package had been
     removed: cf. #553558.

Modified: trunk/w3c-linkchecker/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/w3c-linkchecker/debian/postinst?rev=69069&op=diff
==============================================================================
--- trunk/w3c-linkchecker/debian/postinst (original)
+++ trunk/w3c-linkchecker/debian/postinst Sat Feb 19 11:47:07 2011
@@ -24,6 +24,7 @@
     configure)
 
         CFG_FILE=/etc/w3c/checklink.conf
+        OLD_VERSION=$2
 
         db_get w3c-linkchecker/hostname
         if [ "$RET" ]
@@ -42,7 +43,11 @@
             sed -i -e "s|^\(# \)\?Allow_Private_IPs = [01]$|Allow_Private_IPs = $VALUE|" $CFG_FILE
         fi
 
-        invoke-rc.d apache2 reload
+        if [ -z "${OLD_VERSION}" ]
+        then
+            invoke-rc.d apache2 reload
+        fi
+
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)




More information about the Pkg-perl-cvs-commits mailing list