2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
16 #include "repo_updateinfoxml.h"
17 #include "common_write.h"
22 fprintf(stderr, "\nUsage:\n"
23 "updateinfoxml2solv [-h]\n"
24 " reads a 'updateinfo.xml' file from <stdin> and writes a .solv file to <stdout>\n"
25 " -h : print help & exit\n"
31 main(int argc, char **argv)
35 Pool *pool = pool_create();
36 Repo *repo = repo_create(pool, "<stdin>");
38 while ((c = getopt(argc, argv, "h")) >= 0)
50 if (repo_add_updateinfoxml(repo, stdin, flags))
52 fprintf(stderr, "updateinfoxml2solv: %s\n", pool_errstr(pool));
55 tool_write(repo, stdout);