mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 03:54:59 -05:00
removed ORE tags (after tests, no real performance increase by implementing them)
This commit is contained in:
parent
11b6a69266
commit
c2b27b5880
@ -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(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
|
||||||
ASSERT(name != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -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);
|
_alpm_log(PM_LOG_FLOW2, "loading target %s", name);
|
||||||
if((info = db_scan(db, name, INFRQ_ALL)) == NULL) {
|
if((info = db_scan(db, name, INFRQ_ALL)) == NULL) {
|
||||||
_alpm_log(PM_LOG_ERROR, "could not find %s in database", name);
|
_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;
|
pmdepmissing_t* miss = (pmdepmissing_t*)j->data;
|
||||||
pmpkg_t *info = db_get_pkgfromcache(db, miss->depend.name);
|
pmpkg_t *info = db_get_pkgfromcache(db, miss->depend.name);
|
||||||
if(!pkg_isin(info, trans->packages)) {
|
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);
|
info = db_scan(db, miss->depend.name, INFRQ_ALL);
|
||||||
trans->packages = pm_list_add(trans->packages, info);
|
trans->packages = pm_list_add(trans->packages, info);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user