From 636c89b3888630ccb4f97bee3192dc6391c668eb Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 28 Jun 2021 11:58:28 +0200 Subject: [PATCH] Read/write conda track features in testcases Should have been in commit c7d13d05a587cec227fa22cc8e4b403e85b778c6 --- ext/repo_testcase.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ext/repo_testcase.c b/ext/repo_testcase.c index 5cc03271..00f7b542 100644 --- a/ext/repo_testcase.c +++ b/ext/repo_testcase.c @@ -480,6 +480,12 @@ testcase_write_testtags(Repo *repo, FILE *fp) tmp = solvable_lookup_str(s, SOLVABLE_BUILDVERSION); if (tmp) fprintf(fp, "=Bvr: %s\n", tmp); + if (solvable_lookup_idarray(s, SOLVABLE_TRACK_FEATURES, &q)) + { + int i; + for (i = 0; i < q.count; i++) + fprintf(fp, "=Trf: %s\n", pool_id2str(pool, q.elements[i])); + } ti = solvable_lookup_num(s, SOLVABLE_BUILDTIME, 0); if (ti) fprintf(fp, "=Tim: %u\n", ti); @@ -707,6 +713,9 @@ testcase_add_testtags(Repo *repo, FILE *fp, int flags) case 'B' << 16 | 'v' << 8 | 'r': repodata_set_str(data, s - pool->solvables, SOLVABLE_BUILDVERSION, line + 6); break; + case 'T' << 16 | 'r' << 8 | 'f': + repodata_add_poolstr_array(data, s - pool->solvables, SOLVABLE_TRACK_FEATURES, line + 6); + break; default: break; } -- 2.47.2