From: Michael Schroeder Date: Fri, 22 May 2015 13:43:38 +0000 (+0200) Subject: Treat an unsupported disttype as missing feature X-Git-Tag: 0.6.11~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef0ce24c69380f768fee369ca990c2a384a86d8e;p=thirdparty%2Flibsolv.git Treat an unsupported disttype as missing feature Doesn't help much as no test will be run if 'rpm' is not supported, but hey... --- diff --git a/ext/testcase.c b/ext/testcase.c index d1c76bed..7c2f2d92 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -2479,9 +2479,12 @@ testcase_read(Pool *pool, FILE *fp, char *testcase, Queue *job, char **resultp, { #ifdef MULTI_SEMANTICS pool_setdisttype(pool, disttype2str[i].type); -#else - pool_debug(pool, SOLV_ERROR, "testcase_read: system: cannot change disttype to '%s'\n", pieces[2]); #endif + if (pool->disttype != disttype2str[i].type) + { + pool_debug(pool, SOLV_ERROR, "testcase_read: system: cannot change disttype to '%s'\n", pieces[2]); + missing_features = 1; + } } if (strcmp(pieces[1], "unset") == 0) pool_setarch(pool, 0);