From 0b2b869ded3e1baf845780b4ca2360e0cbaea63a Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 15 Jan 2011 15:38:47 +0100 Subject: git-buildpackage: fix fallback to auto detection for unknown compression types --- git-buildpackage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3