[Qa-jenkins-scm] [jenkins.debian.net] 01/04: qa: udd-query: multiarch_versionskew: output a nice table with tracker.d.o link alongside package names

Holger Levsen holger at moszumanska.debian.org
Sun Apr 5 08:47:46 UTC 2015


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 5b4157f8e1f90f1a0c6644e9a4687248ba57b2e8
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun Apr 5 00:43:03 2015 +0200

    qa: udd-query: multiarch_versionskew: output a nice table with tracker.d.o link alongside package names
---
 TODO             | 2 +-
 bin/udd-query.sh | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/TODO b/TODO
index 2b81613..6cdd45d 100644
--- a/TODO
+++ b/TODO
@@ -158,7 +158,7 @@ properties:
 
 === qa.debian.org*
 
-* turn udd-versionskew packages names into tracker.d.o links and provide version numbers in output too
+* udd-versionskew: also provide arch-relative version numbers in output too
 
 === d-i_manual*
 
diff --git a/bin/udd-query.sh b/bin/udd-query.sh
index 9fde6f5..57ca132 100755
--- a/bin/udd-query.sh
+++ b/bin/udd-query.sh
@@ -49,9 +49,13 @@ multiarch_versionskew() {
 	if [ -s $UDD ] ; then
 		echo "Warning: multi-arch version skew in $DISTRO detected."
 		echo
-		# TODO: turn source package names into links
+		printf  "         Package          |           Tracker\n"
+		# bash sucks: it's printf(1) implementation doesn't like leading dashes as-is...
+		printf -- "--------------------------------------------------------------------------\n"
+		for pkg in $(cat $UDD) ; do
+			printf "%25s | %s\n" "$pkg" "https://tracker.debian.org/$pkg"
 		# TODO: show versions (per arch) too
-		cat $UDD
+		done
 	fi
 	rm $UDD
 }

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