git-buildpackage: fix fallback to auto detection for unknown compression types
authorGuido Günther <agx@sigxcpu.org>
Sat, 15 Jan 2011 14:38:47 +0000 (15:38 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sat, 15 Jan 2011 14:38:47 +0000 (15:38 +0100)
git-buildpackage

index ccca18b..f26dfd9 100755 (executable)
@@ -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: