]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
support :any in testcases
authorMichael Schroeder <mls@suse.de>
Fri, 18 Oct 2013 13:58:01 +0000 (15:58 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 18 Oct 2013 13:58:01 +0000 (15:58 +0200)
ext/testcase.c

index 923e4f1e3e868f5eaffc9e85df8c669b8606d21d..d21621d5b350ebd678edd4863261bd027db87ae0 100644 (file)
@@ -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)