]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
rich deps: use f[i] instead of flags
authorMichael Schroeder <mls@suse.de>
Thu, 15 Jan 2015 10:09:46 +0000 (11:09 +0100)
committerMichael Schroeder <mls@suse.de>
Thu, 15 Jan 2015 10:09:46 +0000 (11:09 +0100)
Found by Lubos Kardos.

ext/repo_rpmdb.c

index 5627d4d8b83f683697c9245a9863ae5be8c31bd2..71c69abf83d06a64721a1ac16726629c3d8b7e88 100644 (file)
@@ -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)