diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-02-07 23:12:45 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-02-07 23:24:02 +0100 |
commit | e0ae084d90d86b8965f34f9f2e29b1409eb6f52a (patch) | |
tree | 854f6d3335e677f4e2380cba1b3c95e646769158 /gbp/deb | |
parent | 00799d7b99831362a9aa44d3e0d279c07f281faa (diff) | |
download | git-buildpackage-e0ae084d90d86b8965f34f9f2e29b1409eb6f52a.tar.gz git-buildpackage-e0ae084d90d86b8965f34f9f2e29b1409eb6f52a.tar.bz2 git-buildpackage-e0ae084d90d86b8965f34f9f2e29b1409eb6f52a.zip |
UpstreamSource: tgz is suitable as upstream tarball.
Diffstat (limited to 'gbp/deb')
-rw-r--r-- | gbp/deb/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py index e4c1f80b..75d39d34 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 |