From 45c2346f6a52aec196dd89b8d09d8b06d05b8867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 29 Apr 2013 14:45:44 +0200 Subject: ChangeLog: Remove is_native to avoid accidental usage. Use DebianSource.is_native instead. --- gbp/deb/changelog.py | 6 ------ gbp/deb/source.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'gbp/deb') diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py index 2d2f0168..2857431f 100644 --- a/gbp/deb/changelog.py +++ b/gbp/deb/changelog.py @@ -168,12 +168,6 @@ class ChangeLog(object): """ return self._cp.has_key('Epoch') - def is_native(self): - """ - Whether this is a native Debian package - """ - return not '-' in self.version - @property def author(self): """ diff --git a/gbp/deb/source.py b/gbp/deb/source.py index 0944ce1a..1e873129 100644 --- a/gbp/deb/source.py +++ b/gbp/deb/source.py @@ -69,7 +69,7 @@ class DebianSource(object): pass # Fall back to changelog parsing try: - return self.changelog.is_native() + return not '-' in self.changelog.version except IOError as e: raise DebianSourceError("Failed to determine source format: %s" % e) -- cgit v1.2.3