]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Treat an unsupported disttype as missing feature
authorMichael Schroeder <mls@suse.de>
Fri, 22 May 2015 13:43:38 +0000 (15:43 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 22 May 2015 13:43:38 +0000 (15:43 +0200)
Doesn't help much as no test will be run if 'rpm' is
not supported, but hey...

ext/testcase.c

index d1c76bed4bec9e783cb358b99d319f3c5f619339..7c2f2d92a4288989d8130177191d4fa5a0d660ba 100644 (file)
@@ -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);