]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 229998: bugzilla-submit 'Operating-System' and 'URL' fields
authorkiko%async.com.br <>
Sat, 17 Jan 2004 06:26:49 +0000 (06:26 +0000)
committerkiko%async.com.br <>
Sat, 17 Jan 2004 06:26:49 +0000 (06:26 +0000)
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

contrib/bugzilla-submit/bugdata.txt
contrib/bugzilla-submit/bugzilla-submit
contrib/bugzilla-submit/bugzilla-submit.xml

index 56f70b9f1b1aaffe4ad84c79582b05251e73ac36..fc880165cf3948f689d0e40ed79cfb6c187f68c5 100644 (file)
@@ -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.
 
index 0efa501fa0df303391610b4b02118f43878a620a..8d40be04b3abe24fe2e1843a6b51fd38a0724811 100755 (executable)
@@ -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',
index 01ad49e631134977d5fdb11004d9f353f6555935..2ffa9b60102fff91f1b45212c786863bea351cb1 100644 (file)
@@ -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>