projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c72dfa
)
Be less picky about empty filters
author
Guido Günther
<agx@sigxcpu.org>
Wed, 27 Jul 2011 20:50:34 +0000
(22:50 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Wed, 27 Jul 2011 20:50:34 +0000
(22:50 +0200)
Closes: #635641
gbp/deb.py
patch
|
blob
|
history
diff --git
a/gbp/deb.py
b/gbp/deb.py
index
f88ff68
..
547fbb7
100644
(file)
--- 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"