1
0
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:
Aurelien Foret 2006-01-27 19:02:24 +00:00
parent fe25662d38
commit a55ad29a7e
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

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