From 5947bc929bc772bf067a6b457fc825bbbfc4b0e6 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 6 Jul 2018 17:16:16 +0100 Subject: [PATCH setup] Fix SolvableVersion::deplist() to handle version-relations correctly This was using completely the wrong Id for the version-relation, so it was always returning unversioned dependencies --- libsolv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolv.cc b/libsolv.cc index fc61651..63942b2 100644 --- a/libsolv.cc +++ b/libsolv.cc @@ -159,9 +159,9 @@ SolvableVersion::deplist(Id keyname) const const char *name = pool_id2str(pool, q.elements[i]); PackageSpecification *spec = new PackageSpecification (name); - if (ISRELDEP(id)) + if (ISRELDEP(q.elements[i])) { - Reldep *rd = GETRELDEP(pool, id); + Reldep *rd = GETRELDEP(pool, q.elements[i]); spec->setOperator(RelId2Operator(rd->flags)); spec->setVersion(pool_id2str(pool, rd->evr)); } -- 2.17.0