diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-16 19:08:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-16 19:16:13 +0200 |
commit | e984baff81c126c0c36ea9c9341c49490a315dec (patch) | |
tree | cef70950cb35c60303c916edfd494a56e69f0a04 /gbp/config.py | |
parent | 351aed961f97b96dd63bbe23b482abf005b58b8f (diff) | |
download | git-buildpackage-e984baff81c126c0c36ea9c9341c49490a315dec.tar.gz git-buildpackage-e984baff81c126c0c36ea9c9341c49490a315dec.tar.bz2 git-buildpackage-e984baff81c126c0c36ea9c9341c49490a315dec.zip |
Make sure self.config['filter'] is a list
The python2.7 OptionParser chokes otherwise.
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py index 00c7fd69..d0c8716e 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -146,7 +146,7 @@ class GbpOptionParser(OptionParser): 'filter-pristine-tar': "Filter pristine-tar when filter option is used", 'filter': - "files to filter out during import (can be given multiple times)", + "files to filter out during import (can be given multiple times), default is %(filter)s", 'git-author': "use name and email from git-config for changelog trailer, default is '%(git-author)s'", 'full': @@ -220,6 +220,8 @@ class GbpOptionParser(OptionParser): self.config['filter'] = eval(self.config['filter']) else: self.config['filter'] = [ self.config['filter'] ] + else: + self.config['filter'] = [] def __init__(self, command, prefix='', usage=None): |