diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 22:18:00 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 22:18:00 +0000 |
commit | 73c6779067548fdbecd1627669c3cd93cc10d995 (patch) | |
tree | 904358b294e9819ed40f03ae2dc7eb357bc108ce | |
parent | c1b2f48abf3dfe2a769a16e861762a73b0ada2d7 (diff) | |
download | pacman-73c6779067548fdbecd1627669c3cd93cc10d995.tar.xz |
removed an uneeded call to db_scan
-rw-r--r-- | lib/libalpm/add.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 034643ef..3b7eca72 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -315,13 +315,9 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) /* Update the requiredby field by scaning the whole database * looking for packages depending on the package to add */ for(lp = db_get_pkgcache(db); lp; lp = lp->next) { - pmpkg_t *tmpp = NULL; + pmpkg_t *tmpp = lp->data; PMList *tmppm = NULL; - /* ORE - is it useful to call db_scan(DEPENDS)? - depends info are already stored in the cache... */ - tmpp = db_scan(db, ((pmpkg_t *)lp->data)->name, INFRQ_DEPENDS); if(tmpp == NULL) { continue; } |