DebianSource: fix is_native()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 26 Apr 2013 09:58:38 +0000 (12:58 +0300)
committerGuido Günther <agx@sigxcpu.org>
Fri, 26 Apr 2013 20:05:43 +0000 (22:05 +0200)
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>
gbp/deb/source.py

index a23f8a7..0944ce1 100644 (file)
@@ -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