summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-01-24 13:49:29 +0100
committerMichael Schroeder <mls@suse.de>2014-01-24 13:49:29 +0100
commit1fdd979e90b0178cd508a841caf7378e1f3e0327 (patch)
tree0fa6372ee05392065bb63d9282057f7388ce7cc9
parent380cab7dc4a0c94df15c1851ae965485efe0824e (diff)
downloadlibsolv-1fdd979e90b0178cd508a841caf7378e1f3e0327.tar.gz
libsolv-1fdd979e90b0178cd508a841caf7378e1f3e0327.tar.bz2
libsolv-1fdd979e90b0178cd508a841caf7378e1f3e0327.zip
add forgotten -X option to susetags2solv tool
-rw-r--r--tools/susetags2solv.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/susetags2solv.c b/tools/susetags2solv.c
index 524253b..71c65d8 100644
--- a/tools/susetags2solv.c
+++ b/tools/susetags2solv.c
@@ -22,6 +22,9 @@
#include "repo_solv.h"
#include "repo_susetags.h"
#include "repo_content.h"
+#ifdef SUSE
+#include "repo_autopattern.h"
+#endif
#include "common_write.h"
#include "solv_xfopen.h"
@@ -68,11 +71,14 @@ main(int argc, char **argv)
const char *mergefile = 0;
Id defvendor = 0;
int flags = 0;
+#ifdef SUSE
+ int add_auto = 0;
+#endif
int c;
Pool *pool;
Repo *repo;
- while ((c = getopt(argc, argv, "hn:c:d:b:q:M:")) >= 0)
+ while ((c = getopt(argc, argv, "hn:c:d:b:q:M:X")) >= 0)
{
switch (c)
{
@@ -97,6 +103,11 @@ main(int argc, char **argv)
case 'M':
mergefile = optarg;
break;
+ case 'X':
+#ifdef SUSE
+ add_auto = 1;
+#endif
+ break;
default:
usage(1);
break;
@@ -295,6 +306,10 @@ main(int argc, char **argv)
}
fclose(fp);
}
+#ifdef SUSE
+ if (add_auto)
+ repo_add_autopattern(repo, 0);
+#endif
if (query)
doquery(pool, repo, query);