aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-26 12:58:38 +0300
committerGuido Günther <agx@sigxcpu.org>2013-04-26 22:05:43 +0200
commitae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c (patch)
tree865226da7fa81f2d512b7fd1a096dad1ef1f859e /gbp
parentadf81b7c8676cc04acdaccad4ff881e84c4139ae (diff)
DebianSource: fix is_native()
Determine from changelog if debian/source/format does not provide any type (1.0 format). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp')
-rw-r--r--gbp/deb/source.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py
index a23f8a7e..0944ce1a 100644
--- a/gbp/deb/source.py
+++ b/gbp/deb/source.py
@@ -63,7 +63,8 @@ class DebianSource(object):
try:
ff = self._vfs.open('debian/source/format')
f = DebianSourceFormat(ff.read())
- return f.type == 'native'
+ if f.type:
+ return f.type == 'native'
except IOError as e:
pass # Fall back to changelog parsing