Commit 3aeef053 authored by kiko%async.com.br's avatar kiko%async.com.br

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
parent cca2329b
...@@ -6,6 +6,8 @@ Hardware: PC ...@@ -6,6 +6,8 @@ Hardware: PC
OS: Linux OS: Linux
Severity: critical Severity: critical
Summary: Impending electron shortage Summary: Impending electron shortage
Depends-on: 8
URL: http://www.google.com/
We need an emergency supply of electrons. We need an emergency supply of electrons.
...@@ -32,10 +32,10 @@ field_aliases = (('hardware', 'rep_platform'), ...@@ -32,10 +32,10 @@ field_aliases = (('hardware', 'rep_platform'),
('os', 'op_sys'), ('os', 'op_sys'),
('summary', 'short_desc'), ('summary', 'short_desc'),
('description', 'comment'), ('description', 'comment'),
('depends-on', 'dependson'), ('depends_on', 'dependson'),
('status', 'bug_status'), ('status', 'bug_status'),
('severity', 'bug_severity'), ('severity', 'bug_severity'),
('URL', 'bug_file_loc'),) ('url', 'bug_file_loc'),)
def header_to_field(hdr): def header_to_field(hdr):
hdr = hdr.lower().replace("-", "_") hdr = hdr.lower().replace("-", "_")
...@@ -71,7 +71,7 @@ def setup_parser(): ...@@ -71,7 +71,7 @@ def setup_parser():
parser.add_option('-H', '--hardware', dest='rep_platform', parser.add_option('-H', '--hardware', dest='rep_platform',
help='Set the Hardware field.') help='Set the Hardware field.')
parser.add_option('-o', '--os', dest='op_sys', 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', parser.add_option('-r', '--priority', dest='priority',
help='Set the Priority field.') help='Set the Priority field.')
parser.add_option('-x', '--severity', dest='bug_severity', parser.add_option('-x', '--severity', dest='bug_severity',
......
...@@ -102,9 +102,10 @@ identifies this field as <quote>Hardware</quote>.)</para></listitem> ...@@ -102,9 +102,10 @@ identifies this field as <quote>Hardware</quote>.)</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term>-o, --os</term> <term>-o, --os</term>
<listitem><para>Set the op_sys field, overriding the Operating-System header <listitem><para>Set the op_sys field, overriding the OS (Operating
from standard input if necessary. (The stock Bugzilla web presentation System) header from standard input if necessary. (The stock Bugzilla web
identifies this field as <quote>OS</quote>.)</para></listitem> presentation also identifies this field as
<quote>OS</quote>.)</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term>-r, --priority</term> <term>-r, --priority</term>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment