From: Michael Schroeder Date: Fri, 18 Oct 2013 13:58:01 +0000 (+0200) Subject: support :any in testcases X-Git-Tag: 0.6.4~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff9c4b9170066b34aadc1e4fbf2c6c2cb3ab3e1;p=thirdparty%2Flibsolv.git support :any in testcases --- diff --git a/ext/testcase.c b/ext/testcase.c index 923e4f1e..d21621d5 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -325,6 +325,11 @@ testcase_str2dep(Pool *pool, char *s) else id = pool_strn2id(pool, n, s - n, 1); } + else if (s - n > 4 && s[-4] == ':' && !strncmp(s - 4, ":any", 4)) + { + id = pool_strn2id(pool, n, s - n - 4, 1); + id = pool_rel2id(pool, id, ARCH_ANY, REL_MULTIARCH, 1); + } else id = pool_strn2id(pool, n, s - n, 1); if (!*s)