mirror of
https://github.com/WarrenHood/MCModpackManager.git
synced 2025-04-30 00:04:59 +01:00
Remove mod before upgrading to allow for transitive deps to upgrade/get pruned
This commit is contained in:
parent
b1f9007f10
commit
9105596c87
|
@ -184,6 +184,11 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(mut modpack_lock) => {
|
Ok(mut modpack_lock) => {
|
||||||
|
let remove_result = modpack_lock.remove_mod(&mod_meta.name, &modpack_meta);
|
||||||
|
if let Err(e) = remove_result {
|
||||||
|
revert_modpack_meta(e);
|
||||||
|
}
|
||||||
|
|
||||||
let pin_result = modpack_lock
|
let pin_result = modpack_lock
|
||||||
.pin_mod_and_deps(&mod_meta, &modpack_meta, ignore_transitive_versions)
|
.pin_mod_and_deps(&mod_meta, &modpack_meta, ignore_transitive_versions)
|
||||||
.await;
|
.await;
|
||||||
|
|
Loading…
Reference in a new issue