From c91f8c8d1d86a47a07e846478bd9fce547d4f23b Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Tue, 13 Jan 2009 00:05:39 +0000 Subject: [PATCH] Fix bug 172719 (cmake-options causes kdesvn-build to fail). The root cause of the problem was that when you had more than one option on a single cmake-options command that it was not getting split into a list properly. The root cause of *that* error was that the regular expression I used to perform the split (without splitting around double-quotes) failed with leading whitespace. I didn't do testing for that case but that it how the function ends up getting called in kdesvn-build. In addition to the bug I've added quotes around individual command parameters for log_command() to make future instances of this type of bug (improper splitting) more obvious. BUG:172719 svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=910294 --- kdesvn-build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kdesvn-build b/kdesvn-build index 8d736ae..4ee4843 100755 --- a/kdesvn-build +++ b/kdesvn-build @@ -847,7 +847,8 @@ sub split_quoted_on_whitespace($) { my $str = shift; my @words = $str =~ - /"? # Match 0-1 quotes + /\s* # Eat up whitespace + "? # Match 0-1 quotes ( # Open grouping expression (?