[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, bts428113, updated. 4.2-33-g2db5032
Sandro Tosi
morph at debian.org
Thu May 21 15:44:12 UTC 2009
The following commit has been merged in the bts428113 branch:
commit 19051a49825288266cf95955f7bf3aec2c8b466e
Author: Sandro Tosi <morph at debian.org>
Date: Sun May 10 15:00:32 2009 +0200
first work to recognize no-cc-question option also from config file
diff --git a/bin/reportbug b/bin/reportbug
index 9533c95..48ccefa 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -720,9 +720,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('--no-cc-question', action='store_const', dest='noccquestion',
+ parser.add_option('--no-cc-question', action='store_true', dest='noccquestion',
help='do not ask for more CCs while executing reportbug',
- const=True)
+ default=False)
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 '
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 8eda059..60d9e4d 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -811,6 +811,9 @@ def parse_config_files():
args['nocc'] = (token == 'no-cc')
elif token in ('no-compress', 'compress'):
args['nocompress'] = (token == 'no-compress')
+ elif token == 'no-cc-question':
+ print "we're in"
+ args['noccquestion'] = True
elif token in ('no-query-bts', 'query-bts'):
args['dontquery'] = (token == 'no-query-bts')
elif token in ('config-files', 'no-config-files'):
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list