summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-01-17 07:26:49 +0100
committerkiko%async.com.br <>2004-01-17 07:26:49 +0100
commit3aeef0535633570b09014f6858c688c6c8e43f22 (patch)
tree6124f4e584ac0aab68e344bcbed8215532ff7bd8
parentcca2329b29a504d52259276b3e855f28891d30fe (diff)
downloadbugzilla-3aeef0535633570b09014f6858c688c6c8e43f22.tar.gz
bugzilla-3aeef0535633570b09014f6858c688c6c8e43f22.tar.xz
Fix for bug 229998: bugzilla-submit 'Operating-System' and 'URL' fields
are rejected. Minor fixes to bugzilla-submit's argument parsing. Patch by me, inspired by work done by joseph@picsel.com (Joseph Heenan). contrib-only. a=myk
-rw-r--r--contrib/bugzilla-submit/bugdata.txt2
-rwxr-xr-xcontrib/bugzilla-submit/bugzilla-submit6
-rw-r--r--contrib/bugzilla-submit/bugzilla-submit.xml7
3 files changed, 9 insertions, 6 deletions
diff --git a/contrib/bugzilla-submit/bugdata.txt b/contrib/bugzilla-submit/bugdata.txt
index 56f70b9f1..fc880165c 100644
--- a/contrib/bugzilla-submit/bugdata.txt
+++ b/contrib/bugzilla-submit/bugdata.txt
@@ -6,6 +6,8 @@ Hardware: PC
OS: Linux
Severity: critical
Summary: Impending electron shortage
+Depends-on: 8
+URL: http://www.google.com/
We need an emergency supply of electrons.
diff --git a/contrib/bugzilla-submit/bugzilla-submit b/contrib/bugzilla-submit/bugzilla-submit
index 0efa501fa..8d40be04b 100755
--- a/contrib/bugzilla-submit/bugzilla-submit
+++ b/contrib/bugzilla-submit/bugzilla-submit
@@ -32,10 +32,10 @@ field_aliases = (('hardware', 'rep_platform'),
('os', 'op_sys'),
('summary', 'short_desc'),
('description', 'comment'),
- ('depends-on', 'dependson'),
+ ('depends_on', 'dependson'),
('status', 'bug_status'),
('severity', 'bug_severity'),
- ('URL', 'bug_file_loc'),)
+ ('url', 'bug_file_loc'),)
def header_to_field(hdr):
hdr = hdr.lower().replace("-", "_")
@@ -71,7 +71,7 @@ def setup_parser():
parser.add_option('-H', '--hardware', dest='rep_platform',
help='Set the Hardware field.')
parser.add_option('-o', '--os', dest='op_sys',
- help='Set the Operating-system field.')
+ help='Set the Operating System field.')
parser.add_option('-r', '--priority', dest='priority',
help='Set the Priority field.')
parser.add_option('-x', '--severity', dest='bug_severity',
diff --git a/contrib/bugzilla-submit/bugzilla-submit.xml b/contrib/bugzilla-submit/bugzilla-submit.xml
index 01ad49e63..2ffa9b601 100644
--- a/contrib/bugzilla-submit/bugzilla-submit.xml
+++ b/contrib/bugzilla-submit/bugzilla-submit.xml
@@ -102,9 +102,10 @@ identifies this field as <quote>Hardware</quote>.)</para></listitem>
</varlistentry>
<varlistentry>
<term>-o, --os</term>
-<listitem><para>Set the op_sys field, overriding the Operating-System header
-from standard input if necessary. (The stock Bugzilla web presentation
-identifies this field as <quote>OS</quote>.)</para></listitem>
+<listitem><para>Set the op_sys field, overriding the OS (Operating
+System) header from standard input if necessary. (The stock Bugzilla web
+presentation also identifies this field as
+<quote>OS</quote>.)</para></listitem>
</varlistentry>
<varlistentry>
<term>-r, --priority</term>