From b8d268f5848846c63762a33b76de76e8e0255284 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 7 Apr 2017 13:32:41 +0200 Subject: chroot-installation: warn about transitional packages installed in sid Signed-off-by: Holger Levsen --- 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 696b8185..f9bb3af0 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2012-2016 Holger Levsen +# Copyright 2012-2017 Holger Levsen # 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 f429b46c..1a151457 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( -- cgit v1.2.3-70-g09d2