mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
fix: install mode works with force mode
This commit is contained in:
parent
ae9da1307c
commit
faedef0c81
1 changed files with 17 additions and 17 deletions
|
@ -250,9 +250,6 @@ impl Project {
|
|||
|
||||
let mut downloaded_graph = DependencyGraph::new();
|
||||
|
||||
let graph_to_download = if force {
|
||||
Cow::Borrowed(graph)
|
||||
} else {
|
||||
let mut queue = graph
|
||||
.iter()
|
||||
.filter(|(_id, node)| {
|
||||
|
@ -269,6 +266,9 @@ impl Project {
|
|||
.for_each(|x| queue.push_back(x));
|
||||
}
|
||||
|
||||
let graph_to_download = if force {
|
||||
Cow::Borrowed(&correct_deps)
|
||||
} else {
|
||||
let mut tasks = correct_deps
|
||||
.into_iter()
|
||||
.map(|(id, node)| {
|
||||
|
|
Loading…
Add table
Reference in a new issue