summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pool.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pool.c b/src/pool.c
index 01f95e6..946f6da 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -1421,10 +1421,8 @@ addfileprovides_cb(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyV
if (value->id >= data->dirpool.ndirs || !MAPTST(&cbd->useddirs, value->id))
return 0;
for (i = 0; i < cbd->nfiles; i++)
- if (cbd->dids[i] != value->id && !strcmp(cbd->names[i], value->str))
- break;
- if (i < cbd->nfiles)
- s->provides = repo_addid_dep(s->repo, s->provides, cbd->ids[i], SOLVABLE_FILEMARKER);
+ if (cbd->dids[i] == value->id && !strcmp(cbd->names[i], value->str))
+ s->provides = repo_addid_dep(s->repo, s->provides, cbd->ids[i], SOLVABLE_FILEMARKER);
return 0;
}