[devscripts] 02/02: debsnap: Display the version information when --version is used

James McCoy jamessan at debian.org
Sat Oct 1 17:54:04 UTC 2016


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

jamessan pushed a commit to branch master
in repository devscripts.

commit b909a192ed042fcabe491c7e369e1228f41fdea5
Author: James McCoy <jamessan at debian.org>
Date:   Sat Oct 1 13:36:46 2016 -0400

    debsnap: Display the version information when --version is used
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog   | 2 ++
 scripts/debsnap.pl | 1 +
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1044e56..07f2932 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ devscripts (2.16.9) UNRELEASED; urgency=medium
   * debsnap:
     + Fix "no binaries for given arch" detection so it doesn't download
       binaries for unspecified archs.  (Closes: #839533)
+    + Add handling for the --version switch, as advertised by --help.
+      (Closes: #839537)
 
  -- James McCoy <jamessan at debian.org>  Sat, 01 Oct 2016 13:26:57 -0400
 
diff --git a/scripts/debsnap.pl b/scripts/debsnap.pl
index 31cdf81..8a3bf0f 100755
--- a/scripts/debsnap.pl
+++ b/scripts/debsnap.pl
@@ -220,6 +220,7 @@ Getopt::Long::Configure('no_ignore_case');
 GetOptions(\%opt, 'verbose|v', 'destdir|d=s', 'force|f', 'help|h', 'version', 'first=s', 'last=s', 'list', 'binary', 'architecture|a=s@') || usage(1);
 
 usage(0) if $opt{help};
+version() if $opt{version};
 usage(1) unless @ARGV;
 $package = shift;
 if (@ARGV) {

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