summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a23f8a7..0944ce1 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