diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-13 11:54:13 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-13 11:54:13 +0000 |
commit | 595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b (patch) | |
tree | e21b0ff76e8755a3db87939f296d22752b04a63b /draklive | |
parent | 9de73575aee5154a98814b830657791537ce9c09 (diff) | |
download | drakiso-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-x | draklive | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |