[Libreoffice-commits] .: solenv/bin

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 21 07:56:17 PST 2012


 solenv/bin/linkoo |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 07f4845e485c5582089fa5551b874be600a94018
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Nov 21 16:50:05 2012 +0100

    unlink file before copying over it, to avoid it getting truncated first
    
    Change-Id: I60cd57a5ae54bbe72c29568c1bbec65da3719491

diff --git a/solenv/bin/linkoo b/solenv/bin/linkoo
index 96abfa6..7b9ee4a 100755
--- a/solenv/bin/linkoo
+++ b/solenv/bin/linkoo
@@ -216,6 +216,7 @@ sub do_link($$$$@)
 	if ($src_mtime > $dest_mtime) {
 #	    print " copy $src/$src_name ($src_mtime) -> $dest/$dest_name ($dest_mtime)\n";
 	    print " copy $src/$src_name -> $dest/$dest_name\n";
+	    unlink ("$dest/$dest_name");
 	    copy("$src/$src_name", "$dest/$dest_name") || die "Failed top copy: $!";
 	} else {
 #	    print " up-to-date $src/$src_name -> $dest/$dest_name\n";


More information about the Libreoffice-commits mailing list