if ((-e "$basedir") || (-l "$basedir"))
{
print "Fink Installer: ROOT /sw exists!\n";
$result = ((1 << 6) | (1 << 5) | 19);
last;
}
+ if (symlink("$basedir", "$basedir.tmp"))
+ {
+ unlink("$basedir.tmp");
+ } else {
+ print "Fink Installer: This volume does not support symlinks!\n";
+ $result = ((1 << 6) | (1 << 5) | 19); # need a new msg number here
+ last;
+ }
$TargetSystemBuild = GetPathEntry("/System/Library/CoreServices/SystemVersion.plist", "ProductBuildVersion");
Switch $basedir and $basedir.tmp (that way we try to create $basedir (which we know doesn't exist) instead of $basedir.tmp (which may exist, which doesn't matter, but would cause test to fail)