summaryrefslogtreecommitdiff
path: root/src/repodata.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-11-05 12:01:30 +0100
committerMichael Schroeder <mls@suse.de>2012-11-05 12:01:30 +0100
commit2aa24b2f3bda114f68e693da0bbe9581c34118f6 (patch)
treef0fafa4d8e0830715b97040c8299f92ed90eb01b /src/repodata.c
parent60db387f9f9843f57d79566df4033a480b6f71bb (diff)
downloadlibsolv-2aa24b2f3bda114f68e693da0bbe9581c34118f6.tar.gz
libsolv-2aa24b2f3bda114f68e693da0bbe9581c34118f6.tar.bz2
libsolv-2aa24b2f3bda114f68e693da0bbe9581c34118f6.zip
Add Solvable.Dataiterator constructor, add missing SEARCH_ definitions, add Datamatch.__str__ method
Also autostringfy if SEARCH_FILES is used and there is no matcher.
Diffstat (limited to 'src/repodata.c')
-rw-r--r--src/repodata.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/repodata.c b/src/repodata.c
index d64a00b..520984c 100644
--- a/src/repodata.c
+++ b/src/repodata.c
@@ -1593,6 +1593,11 @@ dataiterator_step(Dataiterator *di)
if (!datamatcher_match(&di->matcher, di->kv.str))
continue;
}
+ else
+ {
+ if (di->keyname == SOLVABLE_FILELIST && di->key->type == REPOKEY_TYPE_DIRSTRARRAY && (di->flags & SEARCH_FILES) != 0)
+ repodata_stringify(di->pool, di->data, di->key, &di->kv, di->flags);
+ }
/* found something! */
return 1;
}