[vala/staging] vala: Improve detection of duplicate package source files
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Improve detection of duplicate package source files
- Date: Tue, 12 Jan 2021 09:40:15 +0000 (UTC)
commit 382a2961c1380a52f0255e17665b03b19673b3d3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Jan 12 10:24:13 2021 +0100
vala: Improve detection of duplicate package source files
vala/valacodecontext.vala | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 510225e15..d2e550f03 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -395,7 +395,13 @@ public class Vala.CodeContext {
add_package (pkg);
- add_source_file (new SourceFile (this, SourceFileType.PACKAGE, path));
+ var rpath = realpath (path);
+ var source_file = new SourceFile (this, SourceFileType.PACKAGE, path);
+
+ add_source_file (source_file);
+ if (rpath != path) {
+ source_files_map.set (rpath, source_file);
+ }
if (verbose_mode) {
stdout.printf ("Loaded package `%s'\n", path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]