From: Michael Schroeder Date: Wed, 27 Sep 2023 15:24:34 +0000 (+0200) Subject: Fix evr roundtrip X-Git-Tag: 0.7.26~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d301f843168e4085f0631a69229def0051b94afe;p=thirdparty%2Flibsolv.git Fix evr roundtrip Remove the "0:" stripping from the evr in testcase_read. Messing with the evr is not our business, we need to reproduce the data as faithful as possible. --- diff --git a/ext/repo_testcase.c b/ext/repo_testcase.c index 29dd8c0f..cbdd42a3 100644 --- a/ext/repo_testcase.c +++ b/ext/repo_testcase.c @@ -622,7 +622,7 @@ testcase_add_testtags(Repo *repo, FILE *fp, int flags) /* join back version and release */ if (sp[2] && !(sp[2][0] == '-' && !sp[2][1])) sp[2][-1] = '-'; - s->evr = makeevr(pool, sp[1]); + s->evr = pool_str2id(pool, sp[1], 1); s->arch = strcmp(sp[3], "-") ? pool_str2id(pool, sp[3], 1) : 0; continue; default: