Fix cross-device --file .patch files.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 1 Dec 2011 00:55:35 +0000 (01:55 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 1 Dec 2011 00:55:35 +0000 (01:55 +0100)
bin/hammock

index 8844203..2e6fd32 100755 (executable)
@@ -258,7 +258,7 @@ for my $file (@file) {
   newdir "$dir/file.d","mayexist";
   (my $base=$file)=~s{^.*/}{};
   my $d="$dir/file.d/$base";
-  link $file,$d or die "link $file $d: $!";
+  link $file,$d or spawn "cp -p '$file' '$d'";
   newdir "$resultid/file.d","mayexist";
   link $d,"$resultid/file.d/$base" or warn "link $file $resultid/file.d/$base: $!";
 }