[valadoc] driver: Trim lines in *.dep files



commit 75d4596d3f067c2e049364b8279f72b4fc087c3c
Author: Florian Brosch <flo brosch gmail com>
Date:   Sun Apr 8 18:07:58 2012 +0200

    driver: Trim lines in *.dep files

 src/driver/0.10.x/treebuilder.vala |    2 +-
 src/driver/0.12.x/treebuilder.vala |    2 +-
 src/driver/0.14.x/treebuilder.vala |    2 +-
 src/driver/0.16.x/treebuilder.vala |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/driver/0.10.x/treebuilder.vala b/src/driver/0.10.x/treebuilder.vala
index 2f1cd7c..2b37981 100644
--- a/src/driver/0.10.x/treebuilder.vala
+++ b/src/driver/0.10.x/treebuilder.vala
@@ -516,7 +516,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 				ulong deps_len;
 				FileUtils.get_contents (file_path, out deps_content, out deps_len);
 				foreach (string dep in deps_content.split ("\n")) {
-					dep.strip ();
+					dep = dep.strip ();
 					if (dep != "") {
 						if (!add_package (context, dep)) {
 							Vala.Report.error (null, "%s, dependency of %s, not found in specified Vala API directories".printf (dep, pkg_name));
diff --git a/src/driver/0.12.x/treebuilder.vala b/src/driver/0.12.x/treebuilder.vala
index 1764400..f41b10c 100644
--- a/src/driver/0.12.x/treebuilder.vala
+++ b/src/driver/0.12.x/treebuilder.vala
@@ -556,7 +556,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 				ulong deps_len;
 				FileUtils.get_contents (file_path, out deps_content, out deps_len);
 				foreach (string dep in deps_content.split ("\n")) {
-					dep.strip ();
+					dep = dep.strip ();
 					if (dep != "") {
 						if (!add_package (context, dep)) {
 							Vala.Report.error (null, "%s, dependency of %s, not found in specified Vala API directories".printf (dep, pkg_name));
diff --git a/src/driver/0.14.x/treebuilder.vala b/src/driver/0.14.x/treebuilder.vala
index 4b86e6d..422b296 100644
--- a/src/driver/0.14.x/treebuilder.vala
+++ b/src/driver/0.14.x/treebuilder.vala
@@ -651,7 +651,7 @@ message ("--%s--", symbol.name);
 				ulong deps_len;
 				FileUtils.get_contents (file_path, out deps_content, out deps_len);
 				foreach (string dep in deps_content.split ("\n")) {
-					dep.strip ();
+					dep = dep.strip ();
 					if (dep != "") {
 						if (!add_package (context, dep)) {
 							Vala.Report.error (null, "%s, dependency of %s, not found in specified Vala API directories".printf (dep, pkg_name));
diff --git a/src/driver/0.16.x/treebuilder.vala b/src/driver/0.16.x/treebuilder.vala
index 555a313..30008c3 100644
--- a/src/driver/0.16.x/treebuilder.vala
+++ b/src/driver/0.16.x/treebuilder.vala
@@ -610,7 +610,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 				ulong deps_len;
 				FileUtils.get_contents (file_path, out deps_content, out deps_len);
 				foreach (string dep in deps_content.split ("\n")) {
-					dep.strip ();
+					dep = dep.strip ();
 					if (dep != "") {
 						if (!add_package (context, dep)) {
 							Vala.Report.error (null, "%s, dependency of %s, not found in specified Vala API directories".printf (dep, pkg_name));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]