diff options
Diffstat (limited to 'gbp/deb/source.py')
-rw-r--r-- | gbp/deb/source.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py index 2466ab90..7b8ef98e 100644 --- a/gbp/deb/source.py +++ b/gbp/deb/source.py @@ -22,6 +22,7 @@ from gbp.deb.changelog import ChangeLog import six + class FileVfs(object): def __init__(self, dir): """ @@ -36,9 +37,11 @@ class FileVfs(object): flags = flags or 'r' return open(os.path.join(self._dir, path), flags) + class DebianSourceError(Exception): pass + class DebianSource(object): """ A debianized source tree @@ -68,10 +71,10 @@ class DebianSource(object): if f.type: return f.type == 'native' except IOError as e: - pass # Fall back to changelog parsing + pass # Fall back to changelog parsing try: - return not '-' in self.changelog.version + return '-' not in self.changelog.version except IOError as e: raise DebianSourceError("Failed to determine source format: %s" % e) |