aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-02-07 23:12:45 +0100
committerGuido Günther <agx@sigxcpu.org>2012-02-07 23:24:02 +0100
commite0ae084d90d86b8965f34f9f2e29b1409eb6f52a (patch)
tree854f6d3335e677f4e2380cba1b3c95e646769158
parent00799d7b99831362a9aa44d3e0d279c07f281faa (diff)
UpstreamSource: tgz is suitable as upstream tarball.
-rw-r--r--gbp/deb/__init__.py4
1 files changed, 3 insertions, 1 deletions
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