Browse Source

Changed stdout to no-stdout so that stdout is the default, but can be turned

off, and fixed a major bug with undef value used in dirname which caused to
program to die.
master
freesource 22 years ago
parent
commit
407879252c
  1. 2
      BootRoot/Options.pm
  2. 6
      BootRoot/Yard.pm

2
BootRoot/Options.pm

@ -44,7 +44,7 @@ sub option {
"preserve-ownership=s", "preserve-ownership=s",
"kernel=s", "kernel=s",
"kernel-version=s", "kernel-version=s",
"stdout" "no-stdout"
); );

6
BootRoot/Yard.pm

@ -1830,7 +1830,7 @@ sub info {
} }
if ( $option{stdout} ) { if ( !$option{"no-stdout"} ) {
if ( %option ) { if ( %option ) {
if ($level == 0) { if ($level == 0) {
print color("blue"), @msgs, color("reset"); print color("blue"), @msgs, color("reset");
@ -2030,12 +2030,12 @@ sub make_link_absolute {
return $target; # Target is absolute, just return it return $target; # Target is absolute, just return it
} else { ## and use return --freesource } else { ## and use return --freesource
$link = cleanup_link(dirname($file) . "/$target"); $link = cleanup_link(dirname($file) . "/$target") if $file;
} }
$link =~ s,^\.,,; # When there is one file dir eq . --freesource $link =~ s,^\.,, if $link; # When there is one file dir eq . --freesource
return $link; return $link;

Loading…
Cancel
Save