From e0ae084d90d86b8965f34f9f2e29b1409eb6f52a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Tue, 7 Feb 2012 23:12:45 +0100 Subject: [PATCH] UpstreamSource: tgz is suitable as upstream tarball. --- gbp/deb/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py index e4c1f80..75d39d3 100644 --- a/gbp/deb/__init__.py +++ b/gbp/deb/__init__.py @@ -126,7 +126,9 @@ class UpstreamSource(object): parts = self._path.split('.') try: - if parts[-2] == 'tar': + if parts[-1] == 'tgz': + self._orig = True + elif parts[-2] == 'tar': if (parts[-1] in compressor_opts or parts[-1] in compressor_aliases): self._orig = True -- 2.7.4