Skip to content

Commit 636c89b

Browse files
committed
Read/write conda track features in testcases
Should have been in commit c7d13d0
1 parent e2ed3f2 commit 636c89b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ext/repo_testcase.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ testcase_write_testtags(Repo *repo, FILE *fp)
480480
tmp = solvable_lookup_str(s, SOLVABLE_BUILDVERSION);
481481
if (tmp)
482482
fprintf(fp, "=Bvr: %s\n", tmp);
483+
if (solvable_lookup_idarray(s, SOLVABLE_TRACK_FEATURES, &q))
484+
{
485+
int i;
486+
for (i = 0; i < q.count; i++)
487+
fprintf(fp, "=Trf: %s\n", pool_id2str(pool, q.elements[i]));
488+
}
483489
ti = solvable_lookup_num(s, SOLVABLE_BUILDTIME, 0);
484490
if (ti)
485491
fprintf(fp, "=Tim: %u\n", ti);
@@ -707,6 +713,9 @@ testcase_add_testtags(Repo *repo, FILE *fp, int flags)
707713
case 'B' << 16 | 'v' << 8 | 'r':
708714
repodata_set_str(data, s - pool->solvables, SOLVABLE_BUILDVERSION, line + 6);
709715
break;
716+
case 'T' << 16 | 'r' << 8 | 'f':
717+
repodata_add_poolstr_array(data, s - pool->solvables, SOLVABLE_TRACK_FEATURES, line + 6);
718+
break;
710719
default:
711720
break;
712721
}

0 commit comments

Comments
 (0)