[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-603-g211f0fe

David Steele dsteele at gmail.com
Tue May 29 10:01:29 UTC 2012


The following commit has been merged in the develop branch:
commit 89926a72e5675218abfbbd6dce50dba0292c43ad
Author: David Steele <dsteele at gmail.com>
Date:   Thu May 17 19:21:19 2012 -0400

    Remove handling of /etc/piuparts from the piuparts package.
    It will be the responsibility of the server package

diff --git a/debian/changelog b/debian/changelog
index a52f28e..661df0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ piuparts (0.45) UNRELEASED; urgency=low
     now.  
 
   [ David Steele ]
+  * Moved /etc/piuparts purge management out of piuparts.
   * packagesdb.py:
     - Calculate recursive reverse dependency count, and store in PackagesDB.
     - Calculate the count of packages being blocked by a failed package.
diff --git a/debian/preinst b/debian/preinst
deleted file mode 100644
index d27cb59..0000000
--- a/debian/preinst
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# copied and pasted from http://wiki.debian.org/DpkgConffileHandling - thanks!
-
-# Remove a no-longer used conffile
-rm_conffile() {
-    local PKGNAME="$1"
-    local CONFFILE="$2"
-
-    [ -e "$CONFFILE" ] || return 0
-
-    local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
-    local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
-            sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
-    if [ "$md5sum" != "$old_md5sum" ]; then
-        echo "Obsolete conffile $CONFFILE has been modified by you."
-        echo "Saving as $CONFFILE.dpkg-bak ..."
-        mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
-    else
-        echo "Removing obsolete conffile $CONFFILE ..."
-        rm -f "$CONFFILE"
-    fi
-}
-
-case "$1" in
-install|upgrade)
-    if dpkg --compare-versions "$2" le "0.35"; then
-        rm_conffile "/etc/piuparts/piuparts-master.conf"
-        rm_conffile "/etc/piuparts/piuparts-slave.conf"
-    fi
-esac
-
-#DEBHELPER#

-- 
piuparts git repository



More information about the Piuparts-commits mailing list