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>
26 #include "repo_comps.h"
27 #include "common_write.h"
30 main(int argc, char **argv)
32 Pool *pool = pool_create();
33 Repo *repo = repo_create(pool, "<stdin>");
34 if (repo_add_comps(repo, stdin, 0))
36 fprintf(stderr, "comps2solv: %s\n", pool_errstr(pool));
39 tool_write(repo, 0, 0);