From: Guido Günther Date: Wed, 27 Jul 2011 20:50:34 +0000 (+0200) Subject: Be less picky about empty filters X-Git-Tag: debian/0.5.28~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34e82e7e67a6769bef4f676f8018a5605979ed0;p=tools%2Fgit-buildpackage.git Be less picky about empty filters Closes: #635641 --- diff --git a/gbp/deb.py b/gbp/deb.py index f88ff68..547fbb7 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"