[Piuparts-commits] [piuparts] 04/11: pre_distupgrade_exceptions: work around /etc/lazarus symlink/dir mess

Holger Levsen holger at layer-acht.org
Fri Apr 28 16:50:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 604fa89f10960b5492e12f64c5510143b360cbd4
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Apr 25 02:33:08 2017 +0200

    pre_distupgrade_exceptions: work around /etc/lazarus symlink/dir mess
    
    the renaming was done by the wrong package in wheezy, therefore
    dpkg does not forget about the old conffiles (#696075)
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/pre_distupgrade_exceptions | 10 ++++++++++
 debian/changelog                                  |  1 +
 2 files changed, 11 insertions(+)

diff --git a/custom-scripts/scripts/pre_distupgrade_exceptions b/custom-scripts/scripts/pre_distupgrade_exceptions
index e4be39a..13b11b6 100755
--- a/custom-scripts/scripts/pre_distupgrade_exceptions
+++ b/custom-scripts/scripts/pre_distupgrade_exceptions
@@ -60,6 +60,16 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "wheezy" ]; then
 			log_debug
 			dpkg --purge cnews
 			;;
+		lcl-utils)
+			# WORKSAROUND #696075: lcl-utils: directory vs. symlink mess after squeeze => wheezy upgrade: /etc/lazarus
+			# the renaming was performed in the postinst of lcl-utils-0.9.30.4,
+			# which was not the owner of the old /etc/lazarus,
+		        # therefore dpkg does never forget about the old conffiles
+			log_debug
+			if [ -d /etc/lazarus ] && [ ! -L /etc/lazarus ]; then
+				mv -v /etc/lazarus /etc/lazarus.bak
+			fi
+			;;
 		nfsbooted)
 			# sysv-rc fails migration to dependency based boot sequence if nfsbooted is installed
 			# nfsbooted was removed after lenny
diff --git a/debian/changelog b/debian/changelog
index 83ec966..09c0859 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,7 @@ piuparts (0.77) UNRELEASED; urgency=medium
     creation phase.
   * scripts/post_distupgrade_base_cleanup: Remove (transitional) sysvinit from
     stretch.  (Closes: #860819)
+  * scripts/pre_distupgrade_exceptions: Add exceptions for old buggy packages.
   * scripts/post_{setup,distupgrade}_zz_backports: Avoid downgrading
     systemd/udev from jessie-backports to jessie during removal phase.
     (Closes: #856845)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list