Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-18 22:07:11 +0000
committerAaron Griffin <aaron@archlinux.org>2007-02-18 22:07:11 +0000
commit119b3ab0437d83a483d46e43ce3e330b49f05096 (patch)
treefd64a9f9bd10d58e3a9dbfed1605c698da51cffe /lib/libalpm/add.c
parent7b4e2cd25d20e331b66c5163e0d43fe7acd2a420 (diff)
Moved the update_depends function to trans.c, as it depends on a transaction
object
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index ac53ace9..b503323b 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -790,7 +790,6 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
* looking for packages depending on the package to add */
_alpm_pkg_update_requiredby(newpkg);
-
/* make an install date (in UTC) */
time_t t = time(NULL);
strncpy(newpkg->installdate, asctime(gmtime(&t)), PKG_DATE_LEN);
@@ -813,7 +812,7 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
}
/* update dependency packages' REQUIREDBY fields */
- _alpm_pkg_update_depends(newpkg, 0 /*is an add*/);
+ _alpm_trans_update_depends(trans, newpkg);
PROGRESS(trans, (is_upgrade ? PM_TRANS_PROGRESS_UPGRADE_START : PM_TRANS_PROGRESS_ADD_START),
newpkg->name, 100, pkg_count, (pkg_count - targ_count +1));