Verified Commit 57e42cd8 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Use pkgname's for reverse dependencies map

Although in the end we want to have pkgbases to rebuild, in our graph we
should use pkgname's. This fixes the dependency graph for opencolorio
for example. Later we will have to convert it back again to pkgbases.
parent 229469bc
......@@ -40,15 +40,15 @@ fn get_reverse_deps_map(
for dep in pkg.depends() {
reverse_deps
.entry(dep.name().to_string())
.and_modify(|e| e.push(pkg.base().unwrap_or_else(|| pkg.name()).to_string()))
.or_insert_with(|| vec![pkg.base().unwrap_or_else(|| pkg.name()).to_string()]);
.and_modify(|e| e.push(pkg.name().to_string()))
.or_insert_with(|| vec![pkg.name().to_string()]);
}
for dep in pkg.makedepends() {
reverse_deps
.entry(dep.name().to_string())
.and_modify(|e| e.push(pkg.base().unwrap_or_else(|| pkg.name()).to_string()))
.or_insert_with(|| vec![pkg.base().unwrap_or_else(|| pkg.name()).to_string()]);
.and_modify(|e| e.push(pkg.name().to_string()))
.or_insert_with(|| vec![pkg.name().to_string()]);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment