use correct flags element, SEARCH_COMPLETE_FILELIST is not a matcher flag
authorMichael Schroeder <mls@suse.de>
Fri, 21 Jun 2013 09:41:43 +0000 (11:41 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 21 Jun 2013 09:41:43 +0000 (11:41 +0200)
Fixes iterating over the complete file list when there is mo matcher.

src/repodata.c

index 54bd3dc..031147f 100644 (file)
@@ -1388,7 +1388,7 @@ dataiterator_filelistcheck(Dataiterator *di)
   int needcomplete = 0;
   Repodata *data = di->data;
 
-  if ((di->matcher.flags & SEARCH_COMPLETE_FILELIST) != 0)
+  if ((di->flags & SEARCH_COMPLETE_FILELIST) != 0)
     if (!di->matcher.match
        || ((di->matcher.flags & (SEARCH_STRINGMASK|SEARCH_NOCASE)) != SEARCH_STRING
            && (di->matcher.flags & (SEARCH_STRINGMASK|SEARCH_NOCASE)) != SEARCH_GLOB)