2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
17 #include "repo_updateinfoxml.h"
18 #include "common_write.h"
21 usage(const char *err)
24 fprintf(stderr, "\n** Error:\n %s\n", err);
25 fprintf(stderr, "\nUsage:\n"
26 "updateinfoxml2solv [-a][-h][-k][-n <attrname>]\n"
27 " reads a 'updateinfo.xml' file from <stdin> and writes a .solv file to <stdout>\n"
28 " -h : print help & exit\n"
29 " -k : don't mix kinds (experimental!)\n"
30 " -n <name>: save attributes as <name>.attr\n"
36 main(int argc, char **argv)
41 Pool *pool = pool_create();
42 Repo *repo = repo_create(pool, "<stdin>");
48 const char *s = argv[0];
53 case 'h': usage(NULL); break;
62 usage("argument required for '-n'");
71 repo_add_updateinfoxml(repo, stdin, flags);
72 tool_write(repo, 0, 0);