From ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 26 Apr 2013 12:58:38 +0300 Subject: DebianSource: fix is_native() Determine from changelog if debian/source/format does not provide any type (1.0 format). Signed-off-by: Markus Lehtonen --- gbp/deb/source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gbp') 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 -- cgit v1.2.3