Package: reportbug Version: 3.39 Severity: wishlist Tags: patch Hi,
I'd like to be able to set Usertags on submission. For this, I need to be able to add custom pseudo-headers to my report. The attached patch allows this by adding a -P option, and modifying reportbug.py to allow User: and Usertags: pseudo-headers. Thank you, -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |
diff -Nru /tmp/hgNkLFt6dN/reportbug-3.39/debian/changelog /tmp/8yCaFrwFix/reportbug-3.39/debian/changelog --- /tmp/hgNkLFt6dN/reportbug-3.39/debian/changelog 2007-08-17 00:40:09.000000000 +0200 +++ /tmp/8yCaFrwFix/reportbug-3.39/debian/changelog 2007-10-03 16:44:56.000000000 +0200 @@ -1,3 +1,11 @@ +reportbug (3.39-0.1) unstable; urgency=low + + * Non-maintainer upload. + * Add a -P option to allow to set pseudo-headers. This is useful to + set usertags at bug submission time. + + -- Lucas Nussbaum <[EMAIL PROTECTED]> Wed, 03 Oct 2007 16:44:28 +0200 + reportbug (3.39) unstable; urgency=low * Add man page for reportbug.conf, thanks to Y Giridhar Appaji Nag. diff -Nru /tmp/hgNkLFt6dN/reportbug-3.39/reportbug /tmp/8yCaFrwFix/reportbug-3.39/reportbug --- /tmp/hgNkLFt6dN/reportbug-3.39/reportbug 2007-08-17 00:40:37.000000000 +0200 +++ /tmp/8yCaFrwFix/reportbug-3.39/reportbug 2007-10-03 16:40:31.000000000 +0200 @@ -620,6 +620,8 @@ help="key ID to use for PGP/GnuPG signatures") parser.add_option('-H', '--header', action='append', dest='headers', help='add a custom RFC822 header to your report') + parser.add_option('-P', '--pseudo', action='append', dest='pseudos', + help='add a custom pseudo-header to your report') parser.add_option('--license', action='store_true', default=False, help='show copyright and license information') parser.add_option('-m', '--maintonly', action='store_const', @@ -823,6 +825,7 @@ check_available = self.options.check_available dontquery = self.options.dontquery headers = self.options.headers or [] + pseudos = self.options.pseudos or [] mua = self.options.mua pkgversion = self.options.pkgversion quietly = self.options.quietly @@ -1294,7 +1297,6 @@ dontquery = True special = False - pseudos = [] if not body and not subject and not notatty: res = special_prompts(package, bts, ui, fromaddr) if res: diff -Nru /tmp/hgNkLFt6dN/reportbug-3.39/reportbug.1 /tmp/8yCaFrwFix/reportbug-3.39/reportbug.1 --- /tmp/hgNkLFt6dN/reportbug-3.39/reportbug.1 2007-08-17 00:19:19.000000000 +0200 +++ /tmp/8yCaFrwFix/reportbug-3.39/reportbug.1 2007-10-03 16:44:22.000000000 +0200 @@ -306,6 +306,12 @@ HTTP URL, including (if necessary) a port number; for example, \fBhttp://192.168.1.1:3128/\fP. .TP +.B \-P PSEUDO-HEADER, \-\-pseudo=PSEUDO-HEADER +Add a custom pseudo-header to your email; for example, to add the +.I mytag +usertag to the bug, you could use +.I \-P 'Usertags: mytag' +.TP .B \-q, \-\-quiet Suppress diagnostic messages to standard error. .TP diff -Nru /tmp/hgNkLFt6dN/reportbug-3.39/reportbug.py /tmp/8yCaFrwFix/reportbug-3.39/reportbug.py --- /tmp/hgNkLFt6dN/reportbug-3.39/reportbug.py 2007-08-17 00:40:37.000000000 +0200 +++ /tmp/8yCaFrwFix/reportbug-3.39/reportbug.py 2007-10-03 16:58:49.000000000 +0200 @@ -42,7 +42,7 @@ # Headers other than these become email headers for debbugs servers PSEUDOHEADERS = ('Package', 'Version', 'Severity', 'File', 'Tags', - 'Justification', 'Followup-For', 'Owner') + 'Justification', 'Followup-For', 'Owner', 'User', 'Usertags') VALID_UIS = ['newt', 'text', 'gnome2', 'urwid'] AVAILABLE_UIS = []