Release transaction upon SyncState::NotRequired

This commit is contained in:
Xavier Moffett 2024-09-28 19:36:44 -04:00
parent acbe177b60
commit ef4c343826
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

@ -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),