summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-02-17 09:44:04 +0000
committerOwen W. Taylor <otaylor@fishsoup.net>2015-02-19 11:16:40 -0500
commitfe35f655890310b3f9674bc27aa8dc1141105bdf (patch)
treeba905443a14a162caf006b6e63d97a83c17c2621
parentd130fd418e04b9e40a446ca25fe4c9ee3dd8ae9c (diff)
downloadgit-bz-fe35f655890310b3f9674bc27aa8dc1141105bdf.tar.gz
Ignore empty platform fields and change default for GNOME to empty
As a follow up to commit 68256107, change the default platform for GNOME Bugzilla to the empty string, and ignore empty platform fields when uploading. This makes Bugzilla use the default value, which would be ‘Other’ or ‘All’ or whatever the product has set up.
-rwxr-xr-xgit-bz7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index 39893e0..04d6140 100755
--- a/git-bz
+++ b/git-bz
@@ -58,7 +58,7 @@ CONFIG['bugzilla.gnome.org'] = \
"""
https = true
default-priority = Normal
-default-platform = Other
+default-platform =
"""
CONFIG['bugzilla.mozilla.org'] = \
@@ -391,6 +391,11 @@ def merge_default_fields_from_dict(default_fields, d):
param = key[8:].replace("-", "_")
if param in ['tracker', 'product', 'component']:
continue
+
+ # Ignore empty fields
+ if value == '' and param in ['platform']:
+ continue
+
default_fields[param] = value
def get_default_fields(tracker):