diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-07-27 22:50:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-07-27 22:50:34 +0200 |
commit | d34e82e7e67a6769bef4f676f8018a5605979ed0 (patch) | |
tree | be69ae4a69239cbccbd319a35b2a3da00857a3f4 /gbp | |
parent | 3c72dfafd4ff697b7e22d296c381086dfabb1d51 (diff) |
Be less picky about empty filters
Closes: #635641
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/deb.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -223,6 +223,9 @@ class UpstreamSource(object): if self.is_dir: raise GbpError, "Cannot unpack directory %s" % self.path + if not filters: + filters = [] + if type(filters) != type([]): raise GbpError, "Filters must be a list" @@ -281,6 +284,9 @@ class UpstreamSource(object): if not self.unpacked: raise GbpError, "Need an unpacked source tree to pack" + if not filters: + filters = [] + if type(filters) != type([]): raise GbpError, "Filters must be a list" |