aboutsummaryrefslogtreecommitdiffstats
path: root/Packdrakeng.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-01-03 16:54:41 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-01-03 16:54:41 +0000
commite2c7fbaf56ee05ea3caa85a216f834cd7606fd2e (patch)
treeac518b68a8f9237e28e92a54f3058972fb6eb4bb /Packdrakeng.pm
parentd4f28b53147fa97f0f4feddf861804f6d9a8afed (diff)
downloadrpmtools-e2c7fbaf56ee05ea3caa85a216f834cd7606fd2e.tar
rpmtools-e2c7fbaf56ee05ea3caa85a216f834cd7606fd2e.tar.gz
rpmtools-e2c7fbaf56ee05ea3caa85a216f834cd7606fd2e.tar.bz2
rpmtools-e2c7fbaf56ee05ea3caa85a216f834cd7606fd2e.tar.xz
rpmtools-e2c7fbaf56ee05ea3caa85a216f834cd7606fd2e.zip
- Fix options parsing
- 5.0.8
Diffstat (limited to 'Packdrakeng.pm')
-rw-r--r--Packdrakeng.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Packdrakeng.pm b/Packdrakeng.pm
index 86e3942..0eaa6ed 100644
--- a/Packdrakeng.pm
+++ b/Packdrakeng.pm
@@ -63,9 +63,11 @@ sub _new {
use_extern => 1, # default behaviour, informative only
noargs => $options{noargs},
- level => $options{comp_level} || 6, # compression level, aka -X gzip or bzip option
+ # compression level, aka -X gzip or bzip option
+ level => defined($options{comp_level}) ? $options{comp_level} : 6,
- block_size => $options{block_size} || 400 * 1024, # A compressed block will contain 400k of compressed data
+ # A compressed block will contain 400k of compressed data
+ block_size => defined($options{block_size}) ? $options{block_size} : 400 * 1024,
bufsize => $options{bufsize} || 65536, # Arbitrary buffer size to read files
# Internal data