[devscripts] 01/01: wnpp-alert: linkify bug numbers and align fields. Closes: #514307

Rolf Leggewie leggewie-guest at moszumanska.debian.org
Mon Mar 3 05:50:37 UTC 2014


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

leggewie-guest pushed a commit to branch pull-request1
in repository devscripts.

commit dd2a2ceb81979f37017797c3ad3b5998e77b6b04
Author: Rolf Leggewie <foss at rolf.leggewie.biz>
Date:   Mon Mar 3 06:47:02 2014 +0100

    wnpp-alert: linkify bug numbers and align fields. Closes: #514307
---
 scripts/wnpp-alert.sh | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/scripts/wnpp-alert.sh b/scripts/wnpp-alert.sh
index da3be4b..b633650 100755
--- a/scripts/wnpp-alert.sh
+++ b/scripts/wnpp-alert.sh
@@ -128,5 +128,22 @@ if [ -f "$WNPP_DIFF" ]; then
     fi
 fi
 
-comm -12 $WNPP_PACKAGES $INSTALLED | sed -e 's/+/\\+/g' | \
-xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP
+#  - The AWK line-up's the columns.
+#  - The sort groups packages with similar WNPP status together, then
+#  - sorts by package name
+
+comm -12 $WNPP_PACKAGES $INSTALLED |
+sed -e 's/+/\\+/g' |
+xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP |
+awk '{
+    type = $1
+    bug  = $2
+    pkg  = $3
+    bts  = "http://bugs.debian.org/"
+
+    re = "^.*" pkg " --"
+    sub(re, "");
+
+    printf( "%3s %s%d %-25s -- ", type, bts, bug, pkg);
+    print
+}' | sort --ignore-case -k 1,1  -k 3

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list