mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
added missing retval values in trans_release error cases
This commit is contained in:
parent
fe25662d38
commit
a55ad29a7e
@ -139,6 +139,7 @@ int pacman_add(list_t *targets)
|
||||
cleanup:
|
||||
if(alpm_trans_release() == -1) {
|
||||
ERR(NL, "failed to release transaction (%s)\n", alpm_strerror(pm_errno));
|
||||
retval = 1;
|
||||
}
|
||||
|
||||
return(retval);
|
||||
|
@ -150,6 +150,7 @@ cleanup:
|
||||
|
||||
if(alpm_trans_release() == -1) {
|
||||
ERR(NL, "failed to release transaction (%s)\n", alpm_strerror(pm_errno));
|
||||
retval = 1;
|
||||
}
|
||||
|
||||
return(retval);
|
||||
|
@ -790,6 +790,7 @@ int pacman_sync(list_t *targets)
|
||||
cleanup:
|
||||
if(alpm_trans_release() == -1) {
|
||||
ERR(NL, "failed to release transaction (%s)\n", alpm_strerror(pm_errno));
|
||||
retval = 1;
|
||||
}
|
||||
|
||||
return(retval);
|
||||
|
Loading…
Reference in New Issue
Block a user