X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Frpmmd2solv.c;h=d4fe2ff73b643af59c09ae4775abee59714b638e;hb=a52836206e91b14de83ffa1f9cce7194066f314f;hp=ee39eac930d549e61974b61c71317ed2e32f0653;hpb=21bd8cb580e2a02ba60d9c7fea8b398b284c0b0d;p=platform%2Fupstream%2Flibsolv.git diff --git a/tools/rpmmd2solv.c b/tools/rpmmd2solv.c index ee39eac..d4fe2ff 100644 --- a/tools/rpmmd2solv.c +++ b/tools/rpmmd2solv.c @@ -19,6 +19,9 @@ #include "pool.h" #include "repo.h" #include "repo_rpmmd.h" +#ifdef SUSE +#include "repo_autopattern.h" +#endif #include "common_write.h" #include "solv_xfopen.h" @@ -44,11 +47,14 @@ main(int argc, char **argv) const char *basefile = 0; const char *dir = 0; const char *locale = 0; +#ifdef SUSE + int add_auto = 0; +#endif Pool *pool = pool_create(); Repo *repo = repo_create(pool, ""); - while ((c = getopt (argc, argv, "hn:b:d:l:")) >= 0) + while ((c = getopt (argc, argv, "hn:b:d:l:X")) >= 0) { switch(c) { @@ -67,6 +73,11 @@ main(int argc, char **argv) case 'l': locale = optarg; break; + case 'X': +#ifdef SUSE + add_auto = 1; +#endif + break; default: usage(1); break; @@ -142,6 +153,10 @@ main(int argc, char **argv) exit(1); } } +#ifdef SUSE + if (add_auto) + repo_add_autopattern(repo, 0); +#endif tool_write(repo, basefile, attrname); pool_free(pool); exit(0);