[Piuparts-commits] [piuparts] 03/08: pre_distupgrade_exceptions: disable APT::Immediate-Configure on some upgrade paths

Holger Levsen holger at layer-acht.org
Wed May 3 13:40:16 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 beb5846d1979723f0c5b708bc95fc89e0c85958e
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue May 2 18:10:28 2017 +0200

    pre_distupgrade_exceptions: disable APT::Immediate-Configure on some upgrade paths
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/post_distupgrade_exceptions |  3 +++
 custom-scripts/scripts/pre_distupgrade_exceptions  | 23 ++++++++++++++++++++++
 debian/changelog                                   |  4 +++-
 3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/custom-scripts/scripts/post_distupgrade_exceptions b/custom-scripts/scripts/post_distupgrade_exceptions
index f09f1c6..7492dab 100755
--- a/custom-scripts/scripts/post_distupgrade_exceptions
+++ b/custom-scripts/scripts/post_distupgrade_exceptions
@@ -5,6 +5,9 @@ log_debug() {
 	echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
 }
 
+# E: Could not perform immediate configuration on ...
+rm -fv /etc/apt/apt.conf.d/piuparts-disable-immediate-configure
+
 if [ "$PIUPARTS_DISTRIBUTION" = "squeeze" ]; then
 
 	case ${PIUPARTS_OBJECTS%%=*} in
diff --git a/custom-scripts/scripts/pre_distupgrade_exceptions b/custom-scripts/scripts/pre_distupgrade_exceptions
index 963dbe3..6f2e213 100755
--- a/custom-scripts/scripts/pre_distupgrade_exceptions
+++ b/custom-scripts/scripts/pre_distupgrade_exceptions
@@ -88,6 +88,29 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "wheezy" ]; then
 			;;
 	esac
 
+	# E: Could not perform immediate configuration on ...
+	#645713, #677805, #706641
+	case ${PIUPARTS_OBJECTS%%=*} in
+		bug-buddy|\
+		gnome|\
+		gnome-accessibility|\
+		gnome-core|\
+		gnome-dbg|\
+		gnome-desktop-environment|\
+		libgd-text-perl|\
+		open-cobol|\
+		python-sugar-toolkit-0.86|\
+		speechd-el|\
+		sucrose-0.86|\
+		sugar-browse-activity-0.86|\
+		sugar-chat-activity-0.86|\
+		sugar-read-activity-0.86)
+			log_debug
+			echo "Disabling APT::Immediate-Configure"
+			echo 'APT::Immediate-Configure "No";' >> /etc/apt/apt.conf.d/piuparts-disable-immediate-configure
+			;;
+	esac
+
 	# WORKSAROUND #655969: lirc: prompting due to modified conffiles which where not modified by the user: /etc/lirc/hardware.conf
 	if [ -f /etc/lirc/hardware.conf ]; then
 		log_debug
diff --git a/debian/changelog b/debian/changelog
index a4f94f4..8f18cec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -46,7 +46,9 @@ 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/pre_distupgrade_exceptions:
+    - Disable APT::Immediate-Configure on some squeeze->wheezy upgrade paths.
+    - 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