Bug#514307: pull request

Mattia Rizzolo mattia at debian.org
Tue Mar 6 14:29:10 UTC 2018


On Mon, Mar 03, 2014 at 06:44:06PM +0800, Rolf Leggewie wrote:
> I've pushed the relevant patch to alioth git in a branch called
> pull-request1.

As I'm cleaning up branches while moving the canonical git repository,
I'm posting it here so I can delete that branch.

commit dd2a2ceb81979f37017797c3ad3b5998e77b6b04 (HEAD, origin/pull-request1)
Author:     Rolf Leggewie <foss at rolf.leggewie.biz>
AuthorDate: Mon Mar 3 06:47:02 2014 +0100
Commit:     Rolf Leggewie <foss at rolf.leggewie.biz>
CommitDate: Mon Mar 3 06:47:02 2014 +0100

    wnpp-alert: linkify bug numbers and align fields. Closes: #514307

diff --git a/scripts/wnpp-alert.sh b/scripts/wnpp-alert.sh
index da3be4b4..b633650e 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


-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20180306/b4af523b/attachment-0001.sig>


More information about the devscripts-devel mailing list