From ef4c343826d990312f7a54f0d9a8ab2e2c6abb99 Mon Sep 17 00:00:00 2001 From: Xavier Moffett Date: Sat, 28 Sep 2024 19:36:44 -0400 Subject: [PATCH] Release transaction upon `SyncState::NotRequired` --- pacwrap-core/src/sync/transaction/commit.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pacwrap-core/src/sync/transaction/commit.rs b/pacwrap-core/src/sync/transaction/commit.rs index 4510d9b..8576496 100644 --- a/pacwrap-core/src/sync/transaction/commit.rs +++ b/pacwrap-core/src/sync/transaction/commit.rs @@ -79,6 +79,8 @@ impl Transaction for Commit { let state = self.state.as_str(); if let SyncState::NotRequired = handle.trans_ready(ag.action(), ag.flags())? { + handle.alpm_mut().trans_release().generic()?; + return Ok(match ready_state(ag.action(), &self.state) { Some(state) => state, None => TransactionState::Complete(false),