summaryrefslogtreecommitdiff
path: root/src/cleandeps.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-09-10 15:38:48 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-09-10 15:38:48 +0900
commitd4334b3ee7ce4f5c736d3bda979388a87ba7aef3 (patch)
treebd59cecbc982f93ef4a237bd81f1b9cfd0cb10c7 /src/cleandeps.c
parent79b3a6b7ab494c5ff10e740fd147f21a04907907 (diff)
downloadlibsolv-d4334b3ee7ce4f5c736d3bda979388a87ba7aef3.tar.gz
libsolv-d4334b3ee7ce4f5c736d3bda979388a87ba7aef3.tar.bz2
libsolv-d4334b3ee7ce4f5c736d3bda979388a87ba7aef3.zip
Imported Upstream version 0.7.3upstream/0.7.3
Diffstat (limited to 'src/cleandeps.c')
-rw-r--r--src/cleandeps.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cleandeps.c b/src/cleandeps.c
index 1da28f6..8ef6fd3 100644
--- a/src/cleandeps.c
+++ b/src/cleandeps.c
@@ -748,7 +748,6 @@ solver_createcleandepsmap(Solver *solv, Map *cleandepsmap, int unneeded)
continue;
if (strncmp(pool_id2str(pool, s->name), "pattern:", 8) != 0)
continue;
- dp = s->repo->idarraydata + s->requires;
for (dp = s->repo->idarraydata + s->requires; *dp; dp++)
FOR_PROVIDES(p, pp, *dp)
if (pool->solvables[p].repo == installed)
@@ -1368,11 +1367,11 @@ solver_check_cleandeps_mistakes(Solver *solv)
if (!r->p || r == fr || cleandeps_rule_is_true(solv, r))
{
/* update rule is true, check best rules */
- if (!solv->bestrules_pkg)
+ if (!solv->bestrules_info)
continue;
nj = solv->bestrules_end - solv->bestrules;
- for (j = 0; j < nj; j++)
- if (solv->bestrules_pkg[j] == i)
+ for (j = solv->bestrules_up - solv->bestrules; j < nj; j++)
+ if (solv->bestrules_info[j] == i)
{
r = solv->rules + solv->bestrules + j;
if (!cleandeps_rule_is_true(solv, r))