diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-06 23:35:26 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-06 23:35:26 +0100 |
commit | c2b27b58804b9a33a8dd13f62a192f5154416d0d (patch) | |
tree | 41f6a82c0047032135f173d4e6a24c8da58676b7 /lib | |
parent | 11b6a69266519ac53cfb654da7eee09cc9133a32 (diff) | |
download | pacman-c2b27b58804b9a33a8dd13f62a192f5154416d0d.tar.gz pacman-c2b27b58804b9a33a8dd13f62a192f5154416d0d.tar.xz |
removed ORE tags (after tests, no real performance increase by implementing them)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/remove.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 7356870b..f6b85b8c 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -56,9 +56,6 @@ int remove_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1)); ASSERT(name != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1)); - /* ORE - we should better find the package in the cache, and then perform a - db_read(INFRQ_FILES) to add files information to it. */ _alpm_log(PM_LOG_FLOW2, "loading target %s", name); if((info = db_scan(db, name, INFRQ_ALL)) == NULL) { _alpm_log(PM_LOG_ERROR, "could not find %s in database", name); @@ -95,8 +92,6 @@ int remove_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data) pmdepmissing_t* miss = (pmdepmissing_t*)j->data; pmpkg_t *info = db_get_pkgfromcache(db, miss->depend.name); if(!pkg_isin(info, trans->packages)) { - /* ORE - see remove_loadtarget() on how to avoid db_scan() */ info = db_scan(db, miss->depend.name, INFRQ_ALL); trans->packages = pm_list_add(trans->packages, info); } |