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

Always pass data to trans_commit()

Even though we currently don't use it here in the backend, we might as
well pass it in since we used it earlier.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-06-03 11:37:15 -05:00
parent 4d9278f87f
commit 29ea0fa09f

View File

@ -121,11 +121,11 @@ int pacman_remove(alpm_list_t *targets)
depstring);
free(depstring);
}
FREELIST(data);
break;
default:
break;
}
FREELIST(data);
retval = 1;
goto cleanup;
}
@ -165,12 +165,14 @@ int pacman_remove(alpm_list_t *targets)
goto cleanup;
}
if(alpm_trans_commit(config->handle, NULL) == -1) {
if(alpm_trans_commit(config->handle, &data) == -1) {
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to commit transaction (%s)\n"),
alpm_strerror(alpm_errno(config->handle)));
retval = 1;
}
FREELIST(data);
/* Step 4: release transaction resources */
cleanup:
if(trans_release() == -1) {