From: Markus Lehtonen Date: Fri, 26 Apr 2013 09:58:38 +0000 (+0300) Subject: DebianSource: fix is_native() X-Git-Tag: debian/0.6.0_git20130506~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c;p=tools%2Fgit-buildpackage.git DebianSource: fix is_native() Determine from changelog if debian/source/format does not provide any type (1.0 format). Signed-off-by: Markus Lehtonen --- 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