mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
handle current-dependents properly during update (#1621)
This commit is contained in:
@@ -1360,21 +1360,22 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
|
|||||||
.await?;
|
.await?;
|
||||||
*main_status = prev.status.main;
|
*main_status = prev.status.main;
|
||||||
main_status.save(&mut tx).await?;
|
main_status.save(&mut tx).await?;
|
||||||
|
} else {
|
||||||
|
remove_from_current_dependents_lists(
|
||||||
|
&mut tx,
|
||||||
|
pkg_id,
|
||||||
|
&prev.current_dependencies,
|
||||||
|
&receipts.config.current_dependents,
|
||||||
|
)
|
||||||
|
.await?; // remove previous
|
||||||
|
add_dependent_to_current_dependents_lists(
|
||||||
|
&mut tx,
|
||||||
|
pkg_id,
|
||||||
|
¤t_dependencies,
|
||||||
|
&receipts.config.current_dependents,
|
||||||
|
)
|
||||||
|
.await?; // add new
|
||||||
}
|
}
|
||||||
remove_from_current_dependents_lists(
|
|
||||||
&mut tx,
|
|
||||||
pkg_id,
|
|
||||||
&prev.current_dependencies,
|
|
||||||
&receipts.config.current_dependents,
|
|
||||||
)
|
|
||||||
.await?; // remove previous
|
|
||||||
add_dependent_to_current_dependents_lists(
|
|
||||||
&mut tx,
|
|
||||||
pkg_id,
|
|
||||||
¤t_dependencies,
|
|
||||||
&receipts.config.current_dependents,
|
|
||||||
)
|
|
||||||
.await?; // add new
|
|
||||||
update_dependency_errors_of_dependents(
|
update_dependency_errors_of_dependents(
|
||||||
ctx,
|
ctx,
|
||||||
&mut tx,
|
&mut tx,
|
||||||
|
|||||||
Reference in New Issue
Block a user