summaryrefslogtreecommitdiffstats
path: root/src/pacman/add.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-27 20:02:24 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-27 20:02:24 +0100
commita55ad29a7ebbf07bf29af9b09faed7b49562c05f (patch)
tree18a689a912a7e0c4923886ade456d69ac5527b01 /src/pacman/add.c
parentfe25662d38635fe94cb1f332236f9cfca3ac4814 (diff)
downloadpacman-a55ad29a7ebbf07bf29af9b09faed7b49562c05f.tar.gz
pacman-a55ad29a7ebbf07bf29af9b09faed7b49562c05f.tar.xz
added missing retval values in trans_release error cases
Diffstat (limited to 'src/pacman/add.c')
-rw-r--r--src/pacman/add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/add.c b/src/pacman/add.c
index 2400b5d0..9020449d 100644
--- a/src/pacman/add.c
+++ b/src/pacman/add.c
@@ -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);