diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-27 07:41:51 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-27 07:41:51 +0000 |
commit | c0cf6c422d96893436912d12dd651f3f971070ed (patch) | |
tree | 9c207025ac819707f906eb6623eb089024d1eeb0 /lib/libalpm/remove.c | |
parent | e39d05b31b67c9cbc3379d44751fb6f3403c3911 (diff) | |
download | pacman-c0cf6c422d96893436912d12dd651f3f971070ed.tar.xz |
made 'provides' actually work when updating 'requiredby' fields from deps
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r-- | lib/libalpm/remove.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 8f778576..b6e2452b 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -228,11 +228,15 @@ int remove_commit(pmdb_t *db, pmtrans_t *trans) /* look for a provides package */ PMList *provides = _alpm_db_whatprovides(db, depend.name); if(provides) { + PMList *p; /* TODO: should check _all_ packages listed in provides, not just * the first one. */ /* use the first one */ - depinfo = db_scan(db, provides->data, INFRQ_DEPENDS); + depinfo = db_scan(db, ((pmpkg_t *)provides->data)->name, INFRQ_DESC|INFRQ_DEPENDS); + for(p = provides; p; p = p->next) { + p->data = NULL; + } FREELIST(provides); if(depinfo == NULL) { /* wtf */ |