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_deltainfoxml.h"
17 #include "common_write.h"
22 fprintf(stderr, "\nUsage:\n"
23 "deltainfoxml2solv [-a][-h][-n <attrname>]\n"
24 " reads a 'deltainfo.xml' file from <stdin> and writes a .solv file to <stdout>\n"
25 " -h : print help & exit\n"
26 " -n <name>: save attributes as <name>.attr\n"
32 main(int argc, char **argv)
37 Pool *pool = pool_create();
38 Repo *repo = repo_create(pool, "<stdin>");
40 while ((c = getopt(argc, argv, "hn:")) >= 0)
55 if (repo_add_deltainfoxml(repo, stdin, flags))
57 fprintf(stderr, "deltainfoxml2solv: %s\n", pool_errstr(pool));
60 tool_write(repo, 0, attrname);