summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/deptest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pacman/deptest.c b/src/pacman/deptest.c
index fd2663e4..1ed11aa0 100644
--- a/src/pacman/deptest.c
+++ b/src/pacman/deptest.c
@@ -135,10 +135,17 @@ int pacman_deptest(list_t *targets)
/* attempt to resolve missing dependencies */
/* TODO: handle version comparators (eg, glibc>=2.2.5) */
if(retval == 126 && synctargs != NULL) {
+ if(alpm_trans_release() == -1) {
+ ERR(NL, "could not release transaction (%s)", alpm_strerror(pm_errno));
+ FREELIST(synctargs);
+ return(1);
+ }
if(!config->op_d_resolve || pacman_sync(synctargs) != 0) {
/* error (or -D not used) */
retval = 127;
}
+ FREELIST(synctargs);
+ return(retval);
}
FREELIST(synctargs);