aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-buildpackage
diff options
context:
space:
mode:
authorLoïc Minier <lool@debian.org>2011-04-08 03:38:12 +0200
committerGuido Günther <agx@sigxcpu.org>2011-04-09 22:42:24 +0200
commitabf76d0ad980f405f458d54051d0f75a847d25a7 (patch)
treeb6bdee84f8b74e216a2d929f7cf23091c6469a15 /git-buildpackage
parent8189cc9e01ed42f67b20d59a9f18247779a86ed4 (diff)
Update guess_comp_type to take a cp as param
Git-Dch: Ignore
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-buildpackage b/git-buildpackage
index 6223213a..aa7d1ef5 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -263,9 +263,12 @@ def extract_orig(orig_tarball, dest_dir):
os.rmdir(tar_topdir)
-def guess_comp_type(repo, comp_type, srcpkg, upstream_version):
+def guess_comp_type(repo, comp_type, cp):
"""Guess compression type"""
+ srcpkg = cp['Source']
+ upstream_version = cp['Upstream-Version']
+
if comp_type != 'auto':
try:
dummy = du.compressor_opts[comp_type]
@@ -451,7 +454,7 @@ def main(argv):
# Get/build the orig.tar.gz if necessary:
if not du.is_native(cp):
- options.comp_type = guess_comp_type(repo, options.comp_type, cp['Source'], major)
+ options.comp_type = guess_comp_type(repo, options.comp_type, cp)
orig_file = du.orig_file(cp, options.comp_type)
# look in tarball_dir first, if found force a symlink to it