diff options
author | Joachim Tremouroux <joachim.tremouroux@gmail.com> | 2010-12-13 12:53:09 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-12-13 12:53:09 +0000 |
commit | 59bd44d72993b654d05bb39bb3e98dd754f3e986 (patch) | |
tree | 3a1ee38b76a28623a5e74d074637f76ec6721130 /solenv/bin/packimages.pl | |
parent | f43de734575eb72c9f20efba54ff32b256be4651 (diff) |
warn, not fail for missing icons we are asked to pack
Diffstat (limited to 'solenv/bin/packimages.pl')
-rwxr-xr-x | solenv/bin/packimages.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/solenv/bin/packimages.pl b/solenv/bin/packimages.pl index 741dfcc64efc..24bca5c77160 100755 --- a/solenv/bin/packimages.pl +++ b/solenv/bin/packimages.pl @@ -356,9 +356,13 @@ sub create_zip_archive foreach ( optimize_zip_layout($zip_hash_ref) ) { my $path = $zip_hash_ref->{$_} . "/$_"; print_message("zipping '$path' ...") if $extra_verbose; - my $member = $zip->addFile($path, $_, COMPRESSION_STORED); - if ( !$member ) { - print_error("can't add file '$path' to image zip archive: $!", 5); + if ( -e $path) { + my $member = $zip->addFile($path, $_, COMPRESSION_STORED); + if ( !$member ) { + print_error("can't add file '$path' to image zip archive: $!", 5); + } + } else { + print_message("file '$path' not found"); } } my $status = $zip->writeToFileNamed($tmp_out_file); |