2 * Copyright (c) 2012, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
11 * parse Fedora Comps type xml and write out .solv file
17 #include <sys/types.h>
24 #include "repo_comps.h"
25 #include "common_write.h"
28 main(int argc, char **argv)
30 Pool *pool = pool_create();
31 Repo *repo = repo_create(pool, "<stdin>");
32 if (repo_add_comps(repo, stdin, 0))
34 fprintf(stderr, "comps2solv: %s\n", pool_errstr(pool));
37 tool_write(repo, stdout);