summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2010-06-29 18:22:16 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2010-06-29 18:22:16 +0000
commitdf3b4e47d08124ef4d1c09ce29d2738b22b06577 (patch)
tree47863bf539011bac1417921fd321434a00c83397
parent8008ad7b73238397fef8e7f732bf79798323964b (diff)
downloadMPC-df3b4e47d08124ef4d1c09ce29d2738b22b06577.tar.gz
Fix bmake generation test failures. Thanks to Chad Elliott for notifying about
the tests and Adam Mitz for debugging the issue.
-rw-r--r--ChangeLog8
-rw-r--r--modules/TemplateParser.pm2
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c46b5099..ed216f2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-Tue Jun 29 14:45:21 UTC 2010 Chris Cleeland <cleeland@bobke2.local>
+Tue Jun 29 18:18:56 UTC 2010 Chris Cleeland <cleeland@ociweb.com>
+
+ * modules/TemplateParser.pm: split_parameters() was returning an
+ empty parameter. This should fix errant extra whitespace
+ generated in bmake test output.
+
+Tue Jun 29 14:45:21 UTC 2010 Chris Cleeland <cleeland@ociweb.com>
* templates/cdt6platforms.mpt:
* templates/cdt6dll.mpt:
diff --git a/modules/TemplateParser.pm b/modules/TemplateParser.pm
index cfdf4b50..4c296d0c 100644
--- a/modules/TemplateParser.pm
+++ b/modules/TemplateParser.pm
@@ -251,7 +251,7 @@ sub split_parameters {
## Return the parameters (which includes whatever is left in the
## string). Just return it instead of pushing it onto @params.
- return @params, $str;
+ return ($str eq '') ? @params : (@params, $str);
}