#514307 [wnpp-alert] Pad fields to common length

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Rolf Leggewie
Date:
2021-09-22 04:40:41 UTC
Severity:
wishlist
Tags:
#514307#5
Date:
2009-02-06 04:58:02 UTC
From:
To:
Hi,

just found wnpp-alert today and I think it's one of those great and
nifty tools.  I think it would be nice if the fields were aligned.
Currently, this is not the case.  Orphaned packages are off by two
spaces.  I'm not sure, but I think the patch below probably fixes that
(fwiw, it works fine here, locally).

=== Schnipp ===
--- /usr/bin/wnpp-alert	2008-06-27 19:46:52.000000000 +0900
+++ /tmp/wnpp-alert	2009-02-06 13:43:47.645340010 +0900
@@ -125,4 +125,4 @@
 fi

 comm -12 $WNPP_PACKAGES $INSTALLED | sed -e 's/+/\\+/g' | \
-xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP
+xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP | sed s/^O/O\ \ /

=== Schnapp ===

While we are at it, why not include the URL for the bug numbers so that
in many shells it becomes clickable?

=== Schnipp ===
--- /usr/bin/wnpp-alert 2008-06-27 19:46:52.000000000 +0900 +++ /tmp/wnpp-alert 2009-02-06 13:43:47.645340010 +0900 @@ -125,4 +125,4 @@ fi comm -12 $WNPP_PACKAGES $INSTALLED | sed -e 's/+/\\+/g' | \ -xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP +xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP | sed s/^O/O\ \ /sed 's!\ !\ http://bugs.debian.org/!' === Schnapp === I am not a shell guru, so this may not be 100% correct. Please be careful. Regards Rolf
#514307#10
Date:
2009-02-06 05:33:32 UTC
From:
To:
Rolf Leggewie wrote:

This line should of course be

+xargs -i egrep '^[A-Z]+ [0-9]+ {} ' $WNPP |sed 's!\ !\
http://bugs.debian.org/!' | sed s/^O/O\ \ /

#514307#21
Date:
2009-02-06 19:27:29 UTC
From:
To:
Hi,

Thanks :-)

It would give the effect you were after, yes; there's no need to escape
spaces, though. :-)

Unfortunately, it will break --diff support, as the generated lists
won't match even if the bugs they contain haven't changed. Fixing that
shouldn't be a problem, I'm just recording it here so we don't forget
about it.

[...]

No objections, although I'd be inclined to make the behaviour optional,
as I know it would potentially annoy me at least. It would also have the
same issue with --diff mode if the previously generated diff didn't
contain URLs.

Regards,

Adam

#514307#28
Date:
2014-03-03 10:44:06 UTC
From:
To:
Hello,

hoping that this could land after lingering for about 5 years I've
pushed the relevant patch to alioth git in a branch called
pull-request1.  The branch is based off the tip of the current master.
Thank you for your kind consideration.

Regards

Rolf

#514307#33
Date:
2014-03-03 15:35:19 UTC
From:
To:
Hi,

Thanks for the patch.

I'm not particularly involved with devscripts maintenance these days;
I'm afraid it's unlikely I'll look at this myself in the near future.

Regards,

Adam

#514307#38
Date:
2014-03-09 01:21:19 UTC
From:
To:
The changes weren't applied to the "--diff" handling.  Was that
intentional?

I'm not sure that sorting primarily on the type of WNPP bug is
necessarily useful.  The most relevant piece of information is the
package name, so I think that should continue to be the primary key for
sorting.  This would also keep the sort stable if the answer to my
earlier question is “no”.

Also, now that the bug reference is larger, I think it looks a bit
cleaner to have "bugUrl wnppType package -- desc".

Cheers,

#514307#41
Date:
2018-03-06 14:29:10 UTC
From:
To:
I'm posting it here so I can delete that branch.

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

#514307#46
Date:
2021-09-22 04:26:56 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com