From: Michael Schroeder Date: Thu, 15 Jan 2015 10:09:46 +0000 (+0100) Subject: rich deps: use f[i] instead of flags X-Git-Tag: 0.6.9~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=764f8b1e19b36c2b08609fd3557668442f739745;p=thirdparty%2Flibsolv.git rich deps: use f[i] instead of flags Found by Lubos Kardos. --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 5627d4d8..71c69abf 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -537,7 +537,7 @@ makedeps(Pool *pool, Repo *repo, RpmHead *rpmhead, int tagn, int tagv, int tagf, if (!strncmp(n[i], "rpmlib(", 7)) continue; #ifdef ENABLE_COMPLEX_DEPS - if ((flags & (DEP_RICH | DEP_LESS | DEP_EQUAL | DEP_GREATER)) == DEP_RICH && n[i][0] == '(') + if ((f[i] & (DEP_RICH|DEP_LESS| DEP_EQUAL|DEP_GREATER)) == DEP_RICH && n[i][0] == '(') { id = pool_parserpmrichdep(pool, n[i]); if (id)