Release transaction upon SyncState::NotRequired
This commit is contained in:
parent
acbe177b60
commit
ef4c343826
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue