summaryrefslogtreecommitdiff
path: root/gbp/scripts
diff options
context:
space:
mode:
authorEd Bartosh <eduard.bartosh@intel.com>2012-05-03 17:18:10 +0300
committerEd Bartosh <eduard.bartosh@intel.com>2012-05-09 10:54:24 +0300
commitb211190e85c503d0d7b5d587d38c20959a600ac3 (patch)
treeaa5c4f647b9500782eb0e4fcb1cf73da28f6009f /gbp/scripts
parent3a37f412908fcfaeccebdf172671bdf2a723fd92 (diff)
downloadgit-buildpackage-b211190e85c503d0d7b5d587d38c20959a600ac3.tar.gz
git-buildpackage-b211190e85c503d0d7b5d587d38c20959a600ac3.tar.bz2
git-buildpackage-b211190e85c503d0d7b5d587d38c20959a600ac3.zip
Fixed guessing of compressor type
Change-Id: I29f1854316fb3f4d9429f1d0627435c64a6ad5d1
Diffstat (limited to 'gbp/scripts')
-rwxr-xr-xgbp/scripts/buildpackage_rpm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index a8029ad4..de50236b 100755
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -196,6 +196,8 @@ def git_archive_build_orig(repo, spec, output_dir, options):
def guess_comp_type(spec):
+ if spec.orig_comp in compressor_opts:
+ return spec.orig_comp
return compressor_aliases.get(spec.orig_comp, None)