summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2010-10-16 22:46:36 -0700
committerEvan Nemerson <evan@coeus-group.com>2010-11-08 01:43:18 -0800
commit1d9b47b52aa22683aa21fd21f4a20d9621b7d803 (patch)
tree5e289866e5fcf2beb7da18ec201e90ba83451bb2 /vapigen
parent2110dba8a7171be2e3eb0febe0515ad06ae3782f (diff)
downloadvala-1d9b47b52aa22683aa21fd21f4a20d9621b7d803.tar.gz
girparser: Parse included GIR files
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valavapigen.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index f16e288db..58d3ffbc9 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -122,7 +122,6 @@ class Vala.VAPIGen : Object {
Report.error (null, "%s not found".printf (source));
}
}
- sources = null;
if (context.report.get_errors () > 0) {
return quit ();
@@ -157,7 +156,7 @@ class Vala.VAPIGen : Object {
// interface writer ignores external packages
foreach (SourceFile file in context.get_source_files ()) {
- if (!file.filename.has_suffix (".vapi")) {
+ if (!file.filename.has_suffix (".vapi") && file.filename in sources) {
file.file_type = SourceFileType.SOURCE;
}
}