[vala] Strip whitespace from lines in .deps files
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Strip whitespace from lines in .deps files
- Date: Wed, 15 Apr 2009 16:04:46 -0400 (EDT)
commit 6fdc0efda525cf1b64b2c8f68b6462efb5f27ee5
Author: Samuel Cormier-Iijima <sciyoshi gmail com>
Date: Wed Apr 15 22:03:51 2009 +0200
Strip whitespace from lines in .deps files
Fixes bug 560712.
---
compiler/valacompiler.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 1e4ac9b..25cc2c5 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -140,6 +140,7 @@ class Vala.Compiler {
ulong deps_len;
FileUtils.get_contents (deps_filename, out deps_content, out deps_len);
foreach (string dep in deps_content.split ("\n")) {
+ dep.strip ();
if (dep != "") {
if (!add_package (context, dep)) {
Report.error (null, "%s, dependency of %s, not found in specified Vala API directories".printf (dep, pkg));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]