From 8a64bf098be296e2ca3126ce76c43148fc85be19 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Sat, 14 Jun 2008 18:44:51 +0000 Subject: [PATCH] Do not say "no log file" when a module fails to asynchronously update in kdesvn-build. There's one log file which should be guaranteed to exist, if it does simply point to that. svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=820548 --- kdesvn-build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kdesvn-build b/kdesvn-build index 5e8984a..79a80ee 100755 --- a/kdesvn-build +++ b/kdesvn-build @@ -3045,6 +3045,15 @@ sub output_failed_module_list($@) for (@fail_list) { $logfile = get_option($_, '#error-log-file'); + + # async updates may cause us not to have a error log file stored. There's only + # one place it should be though, take advantage of side-effect of log_command() + # to find it. + if (not $logfile) { + my $logdir = get_log_dir($_) . "/error.log"; + $logfile = $logdir if -e $logdir; + } + $logfile = "No log file" unless $logfile; $logfile =~ s|$homedir|~|;