[Qa-jenkins-scm] [jenkins.debian.net] 01/01: obsolete-transitional: proper manual mode

Holger Levsen holger at layer-acht.org
Mon Oct 23 12:48:22 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 ef7f53f603059f199ca1a58f3432d63d875e0853
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 23 14:48:17 2017 +0200

    obsolete-transitional: proper manual mode
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/find_obsolete_transitional_packages.sh | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/bin/find_obsolete_transitional_packages.sh b/bin/find_obsolete_transitional_packages.sh
index fb1fd41..2b1b19f 100755
--- a/bin/find_obsolete_transitional_packages.sh
+++ b/bin/find_obsolete_transitional_packages.sh
@@ -29,6 +29,14 @@ elif ! which grep-dctrl ; then
 	exit 1
 fi
 
+if [ "$1" = "bug" ] ; then
+	MANUAL_MODE=true
+	echo "Entering manual bug filing mode."
+	shift
+else
+	MANUAL_MODE=false
+fi
+
 if [ -z "$1" ] ; then
 	echo "Call $(basename $0) with 2 or 3 params:"
 	echo "         1st: suite which is being developed, eg 'buster'"
@@ -39,15 +47,17 @@ fi
 
 LANG="en_EN.UTF-8"
 ARCH=amd64
-SUITES="$2" 		# jessie stretch sid
+NEXT="$1"		# buster
+shift
+SUITES="$@" 		# jessie stretch sid
 OLDSTABLE="jessie"
 STABLE="stretch"
-NEXT="$1"		# buster
 if [ "$NEXT" != "buster" ] ; then
 	echo "This script needs more changes to work on other suites than buster…"
 	echo "Not many, but a very few."
 	exit 1
 fi
+echo "Looking at $SUITES for obsolete transitional packages in $NEXT."
 # transitional packages we know bugs have been filed about…
 BUGGED="multiarch-support jadetex dh-systemd libpcap-dev transfig myspell-it myspell-sl python-gobject ttf-dejavu ttf-dejavu-core ttf-dejavu-extra libav-tools netcat gnupg2 libkf5akonadicore-bin qml-module-org-kde-extensionplugin myspell-ca myspell-en-gb myspell-sv-se myspell-lt khelpcenter4 libqca2-plugin-ossl gambas3-gb-desktop-gnome git-core gperf-ace libalberta2-dev asterisk-prompt-it libatk-adaptor-data kdemultimedia-dev kdemultimedia-kio-plugins autoconf-gl-macros autofs5 autofs5-h [...]
 
@@ -60,7 +70,7 @@ if [ -z "$BASEPATH" ] ; then
 	        # the "[arch=$ARCH]" is a workaround until #774685 is fixed
 	        chdist --data-dir=$BASEPATH/$SUITE --arch=$ARCH create $SUITE-$ARCH "[arch=$ARCH]" $MIRROR $SUITE main
 		# in interactive mode we don't care about sources
-		if [ -n "$3" ] ; then
+		if $MANUAL_MODE ; then
 			sed -i "s#deb-src#\#deb-src#g" $BASEPATH/$SUITE/$SUITE-$ARCH/etc/apt/sources.list
 		fi
 	        chdist --data-dir=$BASEPATH/$SUITE --arch=$ARCH apt-get $SUITE-$ARCH update
@@ -73,7 +83,7 @@ for SUITE in $SUITES ; do
 	PACKAGES[$NR]=$(ls $BASEPATH/$SUITE/$SUITE-$ARCH/var/lib/apt/lists/*_dists_${SUITE}_main_binary-${ARCH}_Packages)
        	echo "PACKAGES[$NR] = ${PACKAGES[$NR]}"
 	# only in interactive mode we care about sources
-	if [ -z "$3" ] ; then
+	if ! $MANUAL_MODE ; then
 		SOURCES[$NR]=$(ls $BASEPATH/$SUITE/$SUITE-$ARCH/var/lib/apt/lists/*_dists_${SUITE}_main_source_Sources)
 		echo "SOURCES[$NR] = ${SOURCES[$NR]}"
 	fi
@@ -113,7 +123,7 @@ done
 echo
 
 # interactive mode
-if [ -n "$3" ] ; then
+if $MANUAL_MODE ; then
 	MAX=20
 	NR=0
 	echo "Entering manual mode, filing $MAX bugs."

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