Browse Source

Before, if the sources created from the template had a symlink in them already,

you couldn't just press create again .. (for instance for genext2f or
uml_exclusively).  This has been fixed.
master
freesource 23 years ago
parent
commit
dc17ffe59a
  1. 9
      BootRoot/Yard.pm

9
BootRoot/Yard.pm

@ -1265,9 +1265,12 @@ sub create_filesystem {
my($floppy_file) = $mount_point . $file; my($floppy_file) = $mount_point . $file;
mkpath(dirname($floppy_file)); mkpath(dirname($floppy_file));
info(1, "\tLink\t$floppy_file -> $target\n"); info(1, "\tLink\t$floppy_file -> $target\n");
symlink($target, $floppy_file) or # This allows previous symlinks to exist sources
($error = error("symlink($target, $floppy_file): $!\n")); if ( !-e $floppy_file ) {
return "ERROR"if $error && $error eq "ERROR"; symlink($target, $floppy_file) or
($error = error("symlink($target, $floppy_file): $!\n"));
return "ERROR"if $error && $error eq "ERROR";
}
delete $Included{$file}; # Get rid of it so next pass doesn't copit delete $Included{$file}; # Get rid of it so next pass doesn't copit
} elsif (-d $file) { } elsif (-d $file) {

Loading…
Cancel
Save