[vala] Fix source filename mangling
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix source filename mangling
- Date: Fri, 17 Jul 2009 14:09:55 +0000 (UTC)
commit 18b9fd58cc393176bb741fe81e6a8fc6a494b131
Author: Jürg Billeter <j bitron ch>
Date: Fri Jul 17 15:46:37 2009 +0200
Fix source filename mangling
vala/valasourcefile.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala
index 474349c..4c1dfc7 100644
--- a/vala/valasourcefile.vala
+++ b/vala/valasourcefile.vala
@@ -168,7 +168,7 @@ public class Vala.SourceFile {
}
// filename and basedir are already canonicalized
- if (filename.has_prefix (context.basedir)) {
+ if (filename.has_prefix (context.basedir + "/")) {
var basename = Path.get_basename (filename);
var subdir = filename.substring (context.basedir.len (), filename.len () - context.basedir.len () - basename.len ());
while (subdir[0] == '/') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]