]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
repo_search: stringify filenames if requested
authorMichael Schroeder <mls@suse.de>
Mon, 10 Sep 2018 09:32:39 +0000 (11:32 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 10 Sep 2018 09:32:39 +0000 (11:32 +0200)
This brings repo_search in sync with what the data iterator
code does.

src/repo.c

index f08ad38c28f6358165927b5956fdafea6b514aa4..7d67bee94a9e4e409f4257f24523df83d7c59a9f 100644 (file)
@@ -692,6 +692,12 @@ repo_matchvalue(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValu
       if (!datamatcher_match(&md->matcher, str))
        return 0;
     }
+  else
+    {
+      /* stringify filelist if requested */
+      if (key->name == SOLVABLE_FILELIST && key->type == REPOKEY_TYPE_DIRSTRARRAY && (md->matcher.flags & SEARCH_FILES) != 0)
+        repodata_stringify(md->pool, data, key, kv, md->flags);
+    }
   md->stop = md->callback(md->callback_data, s, data, key, kv);
   return md->stop;
 }