diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-26 12:58:38 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-04-26 22:05:43 +0200 |
commit | ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c (patch) | |
tree | 865226da7fa81f2d512b7fd1a096dad1ef1f859e /gbp/deb | |
parent | adf81b7c8676cc04acdaccad4ff881e84c4139ae (diff) | |
download | git-buildpackage-ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c.tar.gz git-buildpackage-ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c.tar.bz2 git-buildpackage-ae63dba9f6d2fe2d1c0889b69eccacb3fc256a9c.zip |
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/deb')
-rw-r--r-- | gbp/deb/source.py | 3 |
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 |