aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-01-15 15:38:47 +0100
committerGuido Günther <agx@sigxcpu.org>2011-01-15 15:38:47 +0100
commit0b2b869ded3e1baf845780b4ca2360e0cbaea63a (patch)
treee9fe8c13e6168c6edf6df6879ba5df312f9e5077
parentafad4f9feeaebb99ab4715ba5b36170abc436734 (diff)
git-buildpackage: fix fallback to auto detection for unknown compression types
-rwxr-xr-xgit-buildpackage3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage
index ccca18b9..f26dfd96 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -185,7 +185,8 @@ def guess_comp_type(repo, comp_type, srcpkg, upstream_version):
except KeyError:
gbp.log.warn("Unknown compression type - guessing.")
comp_type = 'auto'
- else:
+
+ if comp_type == 'auto':
if not repo.has_branch(PristineTar.branch):
comp_type = 'gzip'
else: