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. 3
      BootRoot/Yard.pm

3
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");
# This allows previous symlinks to exist sources
if ( !-e $floppy_file ) {
symlink($target, $floppy_file) or symlink($target, $floppy_file) or
($error = error("symlink($target, $floppy_file): $!\n")); ($error = error("symlink($target, $floppy_file): $!\n"));
return "ERROR"if $error && $error eq "ERROR"; 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