diff options
author | Michael Schroeder <mls@suse.de> | 2013-10-18 15:58:01 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-10-18 15:58:01 +0200 |
commit | 3ff9c4b9170066b34aadc1e4fbf2c6c2cb3ab3e1 (patch) | |
tree | 8449ff0b9732667d53d2f0b3399cfb42819aeaeb /ext | |
parent | 22f634dce4f7e1929419b2521d7869f8dfb5a73e (diff) | |
download | libsolv-3ff9c4b9170066b34aadc1e4fbf2c6c2cb3ab3e1.tar.gz libsolv-3ff9c4b9170066b34aadc1e4fbf2c6c2cb3ab3e1.tar.bz2 libsolv-3ff9c4b9170066b34aadc1e4fbf2c6c2cb3ab3e1.zip |
support :any in testcases
Diffstat (limited to 'ext')
-rw-r--r-- | ext/testcase.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/testcase.c b/ext/testcase.c index 923e4f1..d21621d 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) |