aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/config.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-08-22 15:54:53 +0200
committerGuido Günther <agx@sigxcpu.org>2015-08-22 15:54:53 +0200
commitc57c9fcfbaec19d64fa8b5bd06708326b284ec03 (patch)
tree790f96ad2d316dfd0970dbedc59aed7ca1640cf7 /gbp/scripts/config.py
parentc3f83762aa9eb2c6052a75cc4216781b90f9f023 (diff)
config: Don't print None for unset values
Just leave them empty.
Diffstat (limited to 'gbp/scripts/config.py')
-rwxr-xr-xgbp/scripts/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py
index 94c7224c..44a5641a 100755
--- a/gbp/scripts/config.py
+++ b/gbp/scripts/config.py
@@ -68,6 +68,8 @@ def print_cmd_single_value(query, printer):
parser = parse_cmd_config(cmd)
value = parser.get_config_file_value(option)
+ if value is None:
+ value = ''
printer("%s=%s" % (query, value))
return 0 if value else 1