Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-29 16:52:41 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-29 16:52:41 +0000
commitf8933f85544ed7fe0bce216ff67b2b8f1b37d1ee (patch)
tree924bdd4067a076855fdac352c6e960f98c630116
parent427f7249139c87374173bf169a5be849a293a219 (diff)
added a missing trans_release before pacman_sync call
-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);