[Piuparts-commits] [piuparts] 02/09: scripts/pre_distupgrade_zz_*: skip while creating the reference chroot

Holger Levsen holger at moszumanska.debian.org
Tue Feb 10 12:18:07 UTC 2015


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

holger pushed a commit to branch develop
in repository piuparts.

commit c75bedaeb34b44d8b2aa44c6d91ce4541e06ad5c
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Feb 10 02:28:22 2015 +0100

    scripts/pre_distupgrade_zz_*: skip while creating the reference chroot
    
    could install unwanted packages in the reference chroot
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/pre_distupgrade_zz_database-server | 5 +++++
 custom-scripts/scripts/pre_distupgrade_zz_upgrade_early   | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/custom-scripts/scripts/pre_distupgrade_zz_database-server b/custom-scripts/scripts/pre_distupgrade_zz_database-server
index b035ab1..120a80c 100755
--- a/custom-scripts/scripts/pre_distupgrade_zz_database-server
+++ b/custom-scripts/scripts/pre_distupgrade_zz_database-server
@@ -1,6 +1,11 @@
 #!/bin/sh
 set -e
 
+# Skip while creating the reference chroot.
+if [ "$PIUPARTS_PHASE" = "" ]; then
+	exit 0
+fi
+
 CANDIDATES=""
 CANDIDATES="$CANDIDATES mysql-server"
 CANDIDATES="$CANDIDATES mysql-server-5.5"
diff --git a/custom-scripts/scripts/pre_distupgrade_zz_upgrade_early b/custom-scripts/scripts/pre_distupgrade_zz_upgrade_early
index dee4f5f..10d8e50 100755
--- a/custom-scripts/scripts/pre_distupgrade_zz_upgrade_early
+++ b/custom-scripts/scripts/pre_distupgrade_zz_upgrade_early
@@ -1,6 +1,11 @@
 #!/bin/sh
 set -e
 
+# Skip while creating the reference chroot.
+if [ "$PIUPARTS_PHASE" = "" ]; then
+	exit 0
+fi
+
 log_debug() {
 	echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
 }

-- 
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