summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-13 11:54:13 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-13 11:54:13 +0000
commit595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b (patch)
treee21b0ff76e8755a3db87939f296d22752b04a63b /draklive
parent9de73575aee5154a98814b830657791537ce9c09 (diff)
downloaddrakiso-595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b.tar
drakiso-595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b.tar.gz
drakiso-595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b.tar.bz2
drakiso-595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b.tar.xz
drakiso-595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b.zip
fix compression method test
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive4
1 files changed, 2 insertions, 2 deletions
diff --git a/draklive b/draklive
index 876555e..9352192 100755
--- a/draklive
+++ b/draklive
@@ -1112,7 +1112,7 @@ sub need_compressed_image {
sub get_disk_image_path {
my ($live) = @_;
- if ($live->{settings}{compression_method} == 'gzip') {
+ if ($live->{settings}{compression_method} eq 'gzip') {
get_disk_master_path($live) . if_(need_compressed_image($live), '.gz');
}
else {
@@ -1130,7 +1130,7 @@ sub create_disk_image {
my $dest = get_disk_image_path($live);
mkdir_p(dirname($dest));
- if ($live->{settings}{compression_method} == 'gzip') {
+ if ($live->{settings}{compression_method} eq 'gzip') {
run_('gzip', '>', $dest, '-f', '-c', '--fast', $master);
}
else {