From: Michael Schroeder Date: Fri, 26 Nov 2021 10:32:37 +0000 (+0100) Subject: Support the install time in the testcase format X-Git-Tag: 0.7.21~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dfc7df189f90f5e1afc4938a3ed010614c8878d;p=thirdparty%2Flibsolv.git Support the install time in the testcase format --- diff --git a/ext/repo_testcase.c b/ext/repo_testcase.c index 00f7b542..2497ab57 100644 --- a/ext/repo_testcase.c +++ b/ext/repo_testcase.c @@ -489,6 +489,9 @@ testcase_write_testtags(Repo *repo, FILE *fp) ti = solvable_lookup_num(s, SOLVABLE_BUILDTIME, 0); if (ti) fprintf(fp, "=Tim: %u\n", ti); + ti = solvable_lookup_num(s, SOLVABLE_INSTALLTIME, 0); + if (ti) + fprintf(fp, "=Iti: %u\n", ti); writefilelist(repo, fp, "Fls:", s); } queue_free(&q); @@ -635,6 +638,11 @@ testcase_add_testtags(Repo *repo, FILE *fp, int flags) if (t) repodata_set_num(data, s - pool->solvables, SOLVABLE_BUILDTIME, t); break; + case 'I' << 16 | 't' << 8 | 'i': + t = atoi(line + 6); + if (t) + repodata_set_num(data, s - pool->solvables, SOLVABLE_INSTALLTIME, t); + break; case 'R' << 16 | 'e' << 8 | 'q': s->requires = adddep(repo, s->requires, line + 6, -SOLVABLE_PREREQMARKER); break;