From 8588b4823b579bc41909734f5a13a420d64487d6 Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Sun, 10 Jun 2007 14:40:25 +0200 Subject: Ensure correct and consistent usage of depmiss See comment from Nagy here : http://www.archlinux.org/pipermail/pacman-dev/2007-April/008134.html This also makes easier correct usage of checkdeps in sync.c, which fixes sync901 pactest (and so bug 6057). Signed-off-by: Dan McGee --- lib/libalpm/deps.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/deps.c') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 37fe2ea5..52fdd9ac 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -389,8 +389,9 @@ alpm_list_t *_alpm_checkdeps(pmtrans_t *trans, pmdb_t *db, pmtranstype_t op, if(!satisfied) { _alpm_log(PM_LOG_DEBUG, _("checkdeps: found %s which requires %s"), alpm_pkg_get_name(p), alpm_pkg_get_name(rmpkg)); - miss = _alpm_depmiss_new(alpm_pkg_get_name(rmpkg), PM_DEP_TYPE_DEPEND, - PM_DEP_MOD_ANY, alpm_pkg_get_name(p), NULL); + miss = _alpm_depmiss_new(alpm_pkg_get_name(p), + PM_DEP_TYPE_DEPEND, depend->mod, depend->name, + depend->version); if(!_alpm_depmiss_isin(miss, baddeps)) { baddeps = alpm_list_add(baddeps, miss); } else { -- cgit v1.2.3-54-g00ecf