summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-11-07 13:00:22 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-11-07 13:00:22 +0000
commitfffe7a8ef413bac8805e343d889d6dcf31763b9e (patch)
treec76752b4e6ef991a5a1e9abd616fd2ae767617d5 /lib/libalpm
parent2e559ba431aa2cf78e3296a85ff090bd7b6b0fe6 (diff)
downloadpacman-fffe7a8ef413bac8805e343d889d6dcf31763b9e.tar.xz
fixed wrong prototype usage for trans_new()
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 11bbcc3a..731b6b35 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -74,7 +74,7 @@ void sync_free(pmsyncpkg_t *sync)
free(sync);
}
-/* Test for existance of a package in a PMList* of pmsyncpkg_t*
+/* Test for existence of a package in a PMList* of pmsyncpkg_t*
* If found, return a pointer to the respective pmsyncpkg_t*
*/
static pmsyncpkg_t* find_pkginsync(char *needle, PMList *haystack)
@@ -487,13 +487,17 @@ int sync_commit(pmtrans_t *trans, pmdb_t *db_local)
remove any conflicting packages (WITHOUT dep checks) */
/* remove to-be-replaced packages */
- tr = trans_new(PM_TRANS_TYPE_REMOVE, PM_TRANS_FLAG_NODEPS);
- /* ORE */
+ tr = trans_new();
+
if(tr == NULL) {
_alpm_log(PM_LOG_ERROR, "could not create removal transaction");
pm_errno = PM_ERR_XXX;
goto error;
}
+
+ /* ORE
+ trans_init(PM_TRANS_TYPE_REMOVE, PM_TRANS_FLAGS_NODEPS); */
+
for(i = trans->packages; i; i = i->next) {
pmsyncpkg_t *sync = i->data;
if(sync->type == PM_SYNC_TYPE_REPLACE) {