[Libreoffice-commits] .: solenv/bin

Michael Meeks mmeeks at kemper.freedesktop.org
Mon Dec 13 04:53:37 PST 2010


 solenv/bin/packimages.pl |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 4e770677938f943c04f7a7a368e71ee518ffc0a5
Author: Joachim Tremouroux <joachim.tremouroux at gmail.com>
Date:   Mon Dec 13 12:53:09 2010 +0000

    warn, not fail for missing icons we are asked to pack

diff --git a/solenv/bin/packimages.pl b/solenv/bin/packimages.pl
index 90707f6..0c75993 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);


More information about the Libreoffice-commits mailing list