1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

added a missing trans_release before pacman_sync call

This commit is contained in:
Aurelien Foret 2006-01-29 16:52:41 +00:00
parent 427f724913
commit f8933f8554

View File

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