From 595257f4bc5f4f81cf2fe8dfa0d2b103f509b22b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 13 Oct 2009 11:54:13 +0000 Subject: fix compression method test --- draklive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draklive') 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 { -- cgit v1.2.1