diff options
Diffstat (limited to 'examples/solv')
-rw-r--r-- | examples/solv/repoinfo_type_rpmmd.c | 6 | ||||
-rw-r--r-- | examples/solv/repoinfo_type_susetags.c | 6 | ||||
-rw-r--r-- | examples/solv/solv.c | 8 |
3 files changed, 15 insertions, 5 deletions
diff --git a/examples/solv/repoinfo_type_rpmmd.c b/examples/solv/repoinfo_type_rpmmd.c index 2a5cd7f..7828379 100644 --- a/examples/solv/repoinfo_type_rpmmd.c +++ b/examples/solv/repoinfo_type_rpmmd.c @@ -14,6 +14,9 @@ #ifdef ENABLE_APPDATA #include "repo_appdata.h" #endif +#ifdef SUSE +#include "repo_autopattern.h" +#endif #include "repoinfo.h" #include "repoinfo_cache.h" @@ -195,6 +198,9 @@ repomd_load(struct repoinfo *cinfo, Pool **sigpoolp) fclose(fp); } #endif +#ifdef SUSE + repo_add_autopattern(repo, 0); +#endif data = repo_add_repodata(repo, 0); repodata_extend_block(data, repo->start, repo->end - repo->start); repomd_add_ext(repo, data, "deltainfo", "DL"); diff --git a/examples/solv/repoinfo_type_susetags.c b/examples/solv/repoinfo_type_susetags.c index c22c736..af933af 100644 --- a/examples/solv/repoinfo_type_susetags.c +++ b/examples/solv/repoinfo_type_susetags.c @@ -12,6 +12,9 @@ #ifdef ENABLE_APPDATA #include "repo_appdata.h" #endif +#ifdef SUSE +#include "repo_autopattern.h" +#endif #include "repoinfo.h" #include "repoinfo_cache.h" @@ -263,6 +266,9 @@ susetags_load(struct repoinfo *cinfo, Pool **sigpoolp) } #endif repo_internalize(repo); +#ifdef SUSE + repo_add_autopattern(repo, 0); +#endif data = repo_add_repodata(repo, 0); repodata_extend_block(data, repo->start, repo->end - repo->start); susetags_add_ext(repo, data); diff --git a/examples/solv/solv.c b/examples/solv/solv.c index 5ee4297..bc9d87f 100644 --- a/examples/solv/solv.c +++ b/examples/solv/solv.c @@ -533,14 +533,12 @@ main(int argc, char **argv) flags |= SELECTION_WITH_SOURCE; if (argv[i][0] == '/') flags |= SELECTION_FILELIST | (mode == MODE_ERASE ? SELECTION_INSTALLED_ONLY : 0); + if (keyname && keyname_depstr) + flags |= SELECTION_MATCH_DEPSTR; if (!keyname) rflags = selection_make(pool, &job2, argv[i], flags); else - { - if (keyname_depstr) - flags |= SELECTION_MATCH_DEPSTR; - rflags = selection_make_matchdeps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1), 0); - } + rflags = selection_make_matchdeps(pool, &job2, argv[i], flags, pool_str2id(pool, keyname, 1), 0); if (repofilter.count) selection_filter(pool, &job2, &repofilter); if (archfilter.count) |