summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-06-03 15:35:52 +0200
committerMichael Schroeder <mls@suse.de>2013-06-03 15:37:13 +0200
commitbcd77f2feffb8fc9d52b669d674b4d556d0c7e7d (patch)
treeeb9a50f22d04881c4ed8f940b9a46dbfaf4aa33d /examples
parentef4dc95fb558a136801803d41cf85edfae3a57bc (diff)
downloadlibsolv-bcd77f2feffb8fc9d52b669d674b4d556d0c7e7d.tar.gz
libsolv-bcd77f2feffb8fc9d52b669d674b4d556d0c7e7d.tar.bz2
libsolv-bcd77f2feffb8fc9d52b669d674b4d556d0c7e7d.zip
add POOL_FLAG_ADDFILEPROVIDESFILTERED option to make pool_addfileprovides only add files in the standard locations
Non-standard files are searched lazyly on demand.
Diffstat (limited to 'examples')
-rw-r--r--examples/solv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/solv.c b/examples/solv.c
index a7511ba..43338aa 100644
--- a/examples/solv.c
+++ b/examples/solv.c
@@ -2678,6 +2678,7 @@ main(int argc, char **argv)
#endif
// pool_setdebuglevel(pool, 2);
setarch(pool);
+ pool_set_flag(pool, POOL_FLAG_ADDFILEPROVIDESFILTERED, 1);
repoinfos = read_repoinfos(pool, &nrepoinfos);
if (mainmode == MODE_REPOLIST)
@@ -2821,7 +2822,8 @@ main(int argc, char **argv)
// printf("%s: %d solvables\n", repo->name, repo->nsolvables);
#if defined(ENABLE_RPMDB)
- addfileprovides(pool);
+ if (pool->disttype == DISTTYPE_RPM)
+ addfileprovides(pool);
#endif
pool_createwhatprovides(pool);