aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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