Remove the misleading feature where kdesvn-build reported the last error encountered when

displaying an error message, as it is typically inaccurate.

svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=473945
wilder
Michael Pyne 21 years ago
parent 0c1f6f9993
commit 74b19c7850
  1. 11
      kdesvn-build

@ -440,12 +440,9 @@ sub warning(@)
print_clr @_ if get_option('global', 'debug-level') <= WARNING;
}
# This sub has the additional side effect of printing the errno value if it
# is set.
sub error(@)
{
print STDERR (clr $_) foreach (@_);
print " $!\n" if $!;
}
sub pretend(@)
@ -1033,14 +1030,6 @@ sub log_command
my $result = $?;
set_error_logfile($module, "$filename.log") if $result;
# If we are using the alias to a kdesvn-build function, it should have
# already printed the error message, so clear out errno (but still
# return failure status).
if ($command[0] eq 'kdesvn-build')
{
$! = 0;
}
return $result;
}
else

Loading…
Cancel
Save