summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-09-09 12:07:29 +0200
committerMichael Schroeder <mls@suse.de>2013-09-09 12:07:29 +0200
commit75941c2115f0e8ec9696de2a22198a1969aaef77 (patch)
tree459799dd070ab8681e1d89a23b1d41e4b5eaa2bd /examples
parentd9fd3bedaaf159f684a2d871270683f883679df9 (diff)
downloadlibsolv-75941c2115f0e8ec9696de2a22198a1969aaef77.tar.gz
libsolv-75941c2115f0e8ec9696de2a22198a1969aaef77.tar.bz2
libsolv-75941c2115f0e8ec9696de2a22198a1969aaef77.zip
rename selection_make_deps to selection_make_matchdeps, add marker support
Also add pool_intersect_evrs.
Diffstat (limited to 'examples')
-rw-r--r--examples/solv.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/solv.c b/examples/solv.c
index d4a6b6c..1ab0d88 100644
--- a/examples/solv.c
+++ b/examples/solv.c
@@ -2880,7 +2880,7 @@ main(int argc, char **argv)
if (!keyname)
rflags = selection_make(pool, &job2, argv[i], flags);
else
- rflags = selection_make_deps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1));
+ rflags = selection_make_matchdeps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1), 0);
if (repofilter.count)
selection_filter(pool, &job2, &repofilter);
if (!job2.count)
@@ -2889,7 +2889,7 @@ main(int argc, char **argv)
if (!keyname)
rflags = selection_make(pool, &job2, argv[i], flags);
else
- rflags = selection_make_deps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1));
+ rflags = selection_make_matchdeps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1), 0);
if (repofilter.count)
selection_filter(pool, &job2, &repofilter);
if (job2.count)
@@ -2949,6 +2949,11 @@ main(int argc, char **argv)
str = solvable_lookup_str(s, SOLVABLE_LICENSE);
if (str)
printf("License: %s\n", str);
+#if 0
+ str = solvable_lookup_sourcepkg(s);
+ if (str)
+ printf("Source: %s\n", str);
+#endif
printf("Description:\n%s\n", solvable_lookup_str(s, SOLVABLE_DESCRIPTION));
printf("\n");
}