Download tasks/csa159/pair_135446/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_135446/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/csa159/pair_135446/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_135446/patch.diff
1.43 kB
| diff --git a/ext/testcase.c b/ext/testcase.c | |
| index 0be7a213..8fb6d793 100644 | |
| --- a/ext/testcase.c | |
| +++ b/ext/testcase.c | |
| testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **res | |
| Id *genid = 0; | |
| int ngenid = 0; | |
| Queue autoinstq; | |
| + int oldjobsize = job ? job->count : 0; | |
| if (resultp) | |
| *resultp = 0; | |
| testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **res | |
| int prio, subprio; | |
| const char *rdata; | |
| + if (pool->considered) | |
| + { | |
| + pool_error(pool, 0, "testcase_read: cannot add repos after packages were disabled"); | |
| + continue; | |
| + } | |
| + if (solv) | |
| + { | |
| + pool_error(pool, 0, "testcase_read: cannot add repos after the solver was created"); | |
| + continue; | |
| + } | |
| + if (job && job->count != oldjobsize) | |
| + { | |
| + pool_error(pool, 0, "testcase_read: cannot add repos after jobs have been created"); | |
| + continue; | |
| + } | |
| prepared = 0; | |
| if (!poolflagsreset) | |
| { | |
| testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **res | |
| int i; | |
| /* must set the disttype before the arch */ | |
| + if (job && job->count != oldjobsize) | |
| + { | |
| + pool_error(pool, 0, "testcase_read: cannot change the system after jobs have been created"); | |
| + continue; | |
| + } | |
| prepared = 0; | |
| if (strcmp(pieces[2], "*") != 0) | |
| { |