2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
18 #include "repo_diskusagexml.h"
19 #include "common_write.h"
24 fprintf(stderr, "\nUsage:\n"
25 "diskusagexml2solv [-h]\n"
26 " reads a 'diskusage.xml' file from <stdin> and writes a .solv file to <stdout>\n"
27 " -h : print help & exit\n"
33 main(int argc, char **argv)
37 Pool *pool = pool_create();
38 Repo *repo = repo_create(pool, "<stdin>");
40 while ((c = getopt(argc, argv, "h")) >= 0)
52 if (repo_add_diskusagexml(repo, stdin, flags))
54 fprintf(stderr, "diskusagexml2solv: %s\n", pool_errstr(pool));
57 tool_write(repo, stdout);