From: Michael Schroeder Date: Mon, 1 Jul 2013 16:14:41 +0000 (+0200) Subject: support haiku's compat deps in the testcase parser X-Git-Tag: BASE-SuSE-Code-13_1-Branch~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986b25da24d6fe9e0ce310510e33de0cc68365c1;p=thirdparty%2Flibsolv.git support haiku's compat deps in the testcase parser --- diff --git a/ext/testcase.c b/ext/testcase.c index ceebb8e1..8cb9b9c5 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -340,13 +340,18 @@ testcase_str2dep(Pool *pool, char *s) for (;;s++) { if (*s == '<') - flags |= REL_LT; + flags |= REL_LT; else if (*s == '=') - flags |= REL_EQ; + flags |= REL_EQ; else if (*s == '>') - flags |= REL_GT; + flags |= REL_GT; else - break; + break; + } + if (!flags && *s == 'c' && !strcmp(s, "compat >=")) + { + flags = REL_COMPAT; + s += 9; } if (!flags) return id;