[devscripts] 02/06: rmadison: Display URL aliases in --help

James McCoy jamessan at debian.org
Wed Jan 14 05:45:45 UTC 2015


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

jamessan pushed a commit to branch master
in repository devscripts.

commit 4cee2dca91866ee747d8297dc871d160eb0285b4
Author: James McCoy <jamessan at debian.org>
Date:   Mon Jan 12 22:43:20 2015 -0500

    rmadison: Display URL aliases in --help
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog    | 1 +
 scripts/rmadison.pl | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 25fc131..d6dabf4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ devscripts (2.15.1+exp1) UNRELEASED; urgency=medium
     and exit with error code 2.  (Closes: #774276)
   * rmadison:
     + Display the usage to the specified fd instead of ignoring it.
+    + Display the known URL aliases in the usage.
 
   [ Johannes Schauer ]
   * chdist: Also set Apt::Architectures to prevent foreign architectures from
diff --git a/scripts/rmadison.pl b/scripts/rmadison.pl
index 99662d1..3ad01ec 100755
--- a/scripts/rmadison.pl
+++ b/scripts/rmadison.pl
@@ -82,7 +82,12 @@ Display information about PACKAGE(s).
 
 ARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g.
     --architecture=m68k,i386
+
+Aliases for URLs:
 EOT
+    foreach my $alias (sort keys %url_map) {
+	print $fd "\t$alias\t$url_map{$alias}\n";
+    }
     exit $exit;
 }
 

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