From 74b19c78506b41cf50b28531a1252dd1a6a7d9e1 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Tue, 25 Oct 2005 03:18:04 +0000 Subject: [PATCH] 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 --- kdesvn-build | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/kdesvn-build b/kdesvn-build index b0bfbf4..e4d8d39 100755 --- a/kdesvn-build +++ b/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