UpstreamSource: tgz is suitable as upstream tarball.
authorGuido Günther <agx@sigxcpu.org>
Tue, 7 Feb 2012 22:12:45 +0000 (23:12 +0100)
committerGuido Günther <agx@sigxcpu.org>
Tue, 7 Feb 2012 22:24:02 +0000 (23:24 +0100)
gbp/deb/__init__.py

index e4c1f80..75d39d3 100644 (file)
@@ -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