mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
Fix #790
This commit is contained in:
parent
3a8b3a5f6e
commit
81f17fe7fc
1 changed files with 2 additions and 1 deletions
|
|
@ -482,7 +482,8 @@ impl Builder {
|
||||||
}
|
}
|
||||||
if dup_indices.len() > 0 {
|
if dup_indices.len() > 0 {
|
||||||
println!("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
println!("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||||
for (dupe_ns, dupe_i) in dup_indices {
|
// Remove in reverse order to keep indices valid after each removal
|
||||||
|
for (dupe_ns, dupe_i) in dup_indices.into_iter().rev() {
|
||||||
let removed =
|
let removed =
|
||||||
if dupe_ns == 0 { self.services.remove(dupe_i) } else { self.apps.remove(dupe_i) };
|
if dupe_ns == 0 { self.services.remove(dupe_i) } else { self.apps.remove(dupe_i) };
|
||||||
println!("WARNING: Found duplicate package name, removing later instances of {:?}", removed);
|
println!("WARNING: Found duplicate package name, removing later instances of {:?}", removed);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue