[PATCH] -N option for not asking more CCs during reportbug execution
Carl Chenet
chaica at ohmytux.com
Wed Apr 15 14:08:30 UTC 2009
---
bin/reportbug | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/bin/reportbug b/bin/reportbug
index 47fc7d7..9aa1abd 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -699,6 +699,9 @@ def main():
parser.add_option('-n', '--mh', '--nmh', action='store_const', dest='mua',
help='send the report using mh/nmh',
const=utils.MUA['mh'])
+ parser.add_option('-N', '--no-cc-question', action='store_const', dest='noccquestion',
+ help='do not ask for more CCs while executing reportbug',
+ const=True)
parser.add_option('--mua', dest='mua',
help='send the report using the specified mailer')
parser.add_option('--mta', dest='mta', help='send the report using the '
@@ -1566,7 +1569,8 @@ orphaned for a long period of time are often removed from the archive.\n''')
if not listcc:
listcc = []
- if not listcc and mode > MODE_STANDARD and rtype == 'debbugs' and not self.options.testmode and not self.options.template:
+ if (not listcc and mode > MODE_STANDARD and rtype == 'debbugs' and
+ not self.options.testmode and not self.options.template and not self.options.noccquestion):
listcc += ui.get_multiline('Enter any additional addresses this report should be sent to; press ENTER after each address.')
if severity and rtype:
--
1.5.6.3
--=-LORMn+5WkF/Bj+tumepY--
More information about the Reportbug-maint
mailing list