diff options
author | Evan Nemerson <evan@coeus-group.com> | 2012-01-11 23:25:35 -0800 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2012-01-11 23:25:35 -0800 |
commit | a2c481bb11b3e771ab159eaac5abd8062fc8a5ca (patch) | |
tree | 1893c69b2b65958184d24b5548ec28588fd01ed1 | |
parent | 24d578700524a54e222168e323e0150c701d4b0b (diff) | |
download | vala-a2c481bb11b3e771ab159eaac5abd8062fc8a5ca.tar.gz |
girwriter: do not emit a package as a dependency of itself
-rw-r--r-- | codegen/valagirwriter.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index b15ada8ba..605b75517 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -57,8 +57,10 @@ public class Vala.GIRWriter : CodeVisitor { public void write_includes() { foreach (var i in externals) { - write_indent_stream (); - stream.printf ("<include name=\"%s\" version=\"%s\"/>\n", i.ns, i.version); + if (i.ns != this.gir_namespace) { + write_indent_stream (); + stream.printf ("<include name=\"%s\" version=\"%s\"/>\n", i.ns, i.version); + } } } |