[Qa-jenkins-scm] [jenkins.debian.net] 01/01: chroot-installation: warn about transitional packages installed in sid

Holger Levsen holger at layer-acht.org
Fri Apr 7 11:32:48 UTC 2017


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

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit b8d268f5848846c63762a33b76de76e8e0255284
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Apr 7 13:32:41 2017 +0200

    chroot-installation: warn about transitional packages installed in sid
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/chroot-installation.sh          | 15 ++++++++++++++-
 job-cfg/chroot-installation.yaml.py |  4 +++-
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index 696b818..f9bb3af 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# Copyright 2012-2016 Holger Levsen <holger at layer-acht.org>
+# Copyright 2012-2017 Holger Levsen <holger at layer-acht.org>
 # released under the GPLv=2
 
 DEBUG=true
@@ -279,6 +279,19 @@ if [ "$3" != "" ] ; then
 	esac
 fi
 
+#
+# in sid: find and warn about transitional packages being installed
+#
+if [ "$DISTRO" = "sid" ] ; then
+	( sudo chroot $CHROOT_TARGET dpkg -l | grep -i "Transitional" 2>/dev/null ) > $TMPFILE
+	if [ -s $TMPFILE ] ; then
+		echo
+		echo "Warning: Transitional packages found:"
+		cat $TMPFILE
+	fi
+	rm -f $TMPFILE 2>/dev/null
+fi
+
 echo "Debug: Removing trap."
 trap - INT TERM EXIT
 echo "Debug: Cleanup fine"
diff --git a/job-cfg/chroot-installation.yaml.py b/job-cfg/chroot-installation.yaml.py
index f429b46..1a15145 100755
--- a/job-cfg/chroot-installation.yaml.py
+++ b/job-cfg/chroot-installation.yaml.py
@@ -244,7 +244,9 @@ data.append(
                                                                'first-failure': True,
                                                                'fixed': True,
                                                                'recipients': '{my_recipients}',
-                                                               'subject': '$BUILD_STATUS: $JOB_NAME/$BUILD_NUMBER'}}],
+                                                               'subject': '$BUILD_STATUS: $JOB_NAME/$BUILD_NUMBER'}},
+                                          {   'logparser': {   'parse-rules': '/srv/jenkins/logparse/chroot-installation.rules',
+                                                               'unstable-on-warning': True,}}],
                         'triggers': [{   'timed': '{my_time}'}],
                         'wrappers': [{   'timeout': {   'timeout': 360}}]}})
 data.append(

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



More information about the Qa-jenkins-scm mailing list