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

r3729 - glibc-package/branches/multiarch/debian/debhelper.in



Author: aurel32
Date: 2009-08-02 22:23:37 +0000 (Sun, 02 Aug 2009)
New Revision: 3729

Removed:
   glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.postinst
   glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.preinst
Log:
No need from preinst/postint script, dpkg is smart enough to handle
cross-package conffile move as long as their name doesn't change.


Deleted: glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.postinst
===================================================================
--- glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.postinst	2009-08-02 21:48:03 UTC (rev 3728)
+++ glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.postinst	2009-08-02 22:23:37 UTC (rev 3729)
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Move a conffile without triggering a dpkg question
-mv_conffile() {
-    local OLDCONFFILE="$1"
-    local NEWCONFFILE="$2"
-
-    [ -e "$OLDCONFFILE" ] || return 0
-
-    echo "Preserving user changes to $NEWCONFFILE ..."
-    mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new
-    mv -f "$OLDCONFFILE" "$NEWCONFFILE"
-}
-
-LASTVERSION=2.9-22
-
-case "$1" in
-configure)
-    if dpkg --compare-versions "$2" le "$LASTVERSION"; then
-        mv_conffile "/etc/bindresvport.blacklist"
-        mv_conffile "/etc/gai.conf"
-        mv_conffile "/etc/ld.so.conf.d/libc.conf"
-    fi
-esac
-
-#DEBHELPER#
-
-exit 0

Deleted: glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.preinst
===================================================================
--- glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.preinst	2009-08-02 21:48:03 UTC (rev 3728)
+++ glibc-package/branches/multiarch/debian/debhelper.in/libc-bin.preinst	2009-08-02 22:23:37 UTC (rev 3729)
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Prepare to move a conffile without triggering a dpkg question
-prep_mv_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
-        rm -f "$CONFFILE"
-    fi
-}
-
-LASTVERSION=2.9-22
-
-case "$1" in
-install|upgrade)
-    if dpkg --compare-versions "$2" le "$LASTVERSION"; then
-        prep_mv_conffile LIBC "/etc/bindresvport.blacklist"
-        prep_mv_conffile LIBC "/etc/gai.conf"
-        prep_mv_conffile LIBC "/etc/ld.so.conf.d/libc.conf"
-    fi
-esac
-
-#DEBHELPER#
-
-exit 0


Reply to: