|
|
@@ -472,6 +472,9 @@ namespace Statum.Tools {
|
|
|
}
|
|
|
node->unlink();
|
|
|
}
|
|
|
+ foreach (var node in refs.duplicates) {
|
|
|
+ node->unlink();
|
|
|
+ }
|
|
|
legacy->unlink();
|
|
|
|
|
|
// Exactly one build warning per page, naming the page and the
|
|
|
@@ -482,8 +485,8 @@ namespace Statum.Tools {
|
|
|
if (subsumed.length > 0) {
|
|
|
stderr.printf("; subsumed explicit module tag(s): %s", string.joinv(", ", subsumed));
|
|
|
}
|
|
|
- if (refs.duplicates > 0) {
|
|
|
- stderr.printf("; dropped %d duplicate statum.js reference(s)", refs.duplicates);
|
|
|
+ if (refs.duplicates.length > 0) {
|
|
|
+ stderr.printf("; dropped %d duplicate statum.js reference(s)", refs.duplicates.length);
|
|
|
}
|
|
|
stderr.printf("\n");
|
|
|
}
|
|
|
@@ -505,7 +508,7 @@ namespace Statum.Tools {
|
|
|
if (refs.legacy == null) {
|
|
|
refs.legacy = node;
|
|
|
} else {
|
|
|
- refs.duplicates++;
|
|
|
+ refs.duplicates += node;
|
|
|
}
|
|
|
} else if (is_client_module((!)res)) {
|
|
|
refs.modules += node;
|
|
|
@@ -980,7 +983,7 @@ namespace Statum.Tools {
|
|
|
private class ClientRefs : Object {
|
|
|
public Xml.Node* legacy = null;
|
|
|
public Xml.Node*[] modules = new Xml.Node*[0];
|
|
|
- public int duplicates = 0;
|
|
|
+ public Xml.Node*[] duplicates = new Xml.Node*[0];
|
|
|
}
|
|
|
|
|
|
private class VariantData : Object {
|