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_repomdxml.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 "repomdxml2solv [-a][-h][-k][-n <attrname>]\n"
27 " reads a 'repomd.xml' file from <stdin> and writes a .solv file to <stdout>\n"
28 " -h : print help & exit\n"
34 main(int argc, char **argv)
38 Pool *pool = pool_create();
39 Repo *repo = repo_create(pool, "<stdin>");
45 const char *s = argv[0];
50 case 'h': usage(NULL); break;
56 repo_add_repomdxml(repo, stdin, flags);
57 tool_write(repo, 0, 0);