aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-07-27 22:50:34 +0200
committerGuido Günther <agx@sigxcpu.org>2011-07-27 22:50:34 +0200
commitd34e82e7e67a6769bef4f676f8018a5605979ed0 (patch)
treebe69ae4a69239cbccbd319a35b2a3da00857a3f4 /gbp
parent3c72dfafd4ff697b7e22d296c381086dfabb1d51 (diff)
Be less picky about empty filters
Closes: #635641
Diffstat (limited to 'gbp')
-rw-r--r--gbp/deb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/deb.py b/gbp/deb.py
index f88ff682..547fbb75 100644
--- a/gbp/deb.py
+++ b/gbp/deb.py
@@ -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"