[Reportbug-commits] [reportbug] 01/02: special-case also the short alias -T along with --tag; this fixes a crash in 'debian-bug' in Emacs; thanks to Sven Joachim for report and patch; Closes: #794590

Sandro Tosi morph at moszumanska.debian.org
Sun Aug 30 01:39:43 UTC 2015


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

morph pushed a commit to branch master
in repository reportbug.

commit d3cefdeb4689207124e46c36c4a56ab57826b728
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Aug 30 01:17:45 2015 +0100

    special-case also the short alias -T along with --tag; this fixes a crash in 'debian-bug' in Emacs; thanks to Sven Joachim for report and patch; Closes: #794590
---
 bin/reportbug    | 2 +-
 debian/changelog | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reportbug b/bin/reportbug
index 58fd9d9..b787f98 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -752,7 +752,7 @@ def verify_append_option(option, opt, value, parser, *args):
     # special case --tag: in valid we pass a function reference
     # as get_tags is dependant on the user mode, so we also have to convert
     # the mode to the integer value expected... FIXME
-    if opt == '--tag':
+    if opt == '--tag' or opt == '-T':
         valid = sorted(valid(mode=utils.MODELIST.index(parser.values.mode)).keys())+['none']
     if value == 'help':
         ewrite('%s:\n %s\n' % (heading, '\n '.join(valid)))
diff --git a/debian/changelog b/debian/changelog
index 302fff2..efccae0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,12 @@ reportbug (6.6.5) UNRELEASED; urgency=medium
   * bin/reportbug, reportbug/{debbugs.py, exceptions.py}
     - in case of an error accessing the BTS, throw a new exception, and catch it
       in the main program, and display a message about it
+  * bin/reportbug
+    - special-case also the short alias -T along with --tag; this fixes a crash
+      in 'debian-bug' in Emacs; thanks to Sven  Joachim for report and patch;
+      Closes: #794590
 
- -- Sandro Tosi <morph at debian.org>  Sat, 29 Aug 2015 21:48:09 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 30 Aug 2015 01:09:54 +0100
 
 reportbug (6.6.4) unstable; urgency=medium
 

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



More information about the Reportbug-commits mailing list