]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix evr roundtrip
authorMichael Schroeder <mls@suse.de>
Wed, 27 Sep 2023 15:24:34 +0000 (17:24 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 27 Sep 2023 15:24:34 +0000 (17:24 +0200)
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.

ext/repo_testcase.c

index 29dd8c0fe3cb8f4e35a1591fd89daea436bdc02c..cbdd42a3ddb40121ef0e7f3bcbbe9f122448c743 100644 (file)
@@ -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: