2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 #include <sys/types.h>
21 #include "repo_rpmdb.h"
22 #include "repo_solv.h"
23 #include "repo_write.h"
26 main(int argc, char **argv)
28 Pool *pool = pool_create();
35 if ((fp = fopen(argv[1], "r")) == NULL)
40 ref = repo_create(refpool, "ref");
41 repo_add_solv(ref, fp);
45 repo = repo_create(pool, "installed");
46 repo_add_rpmdb(repo, ref);
49 if (ref->pool != pool)
56 repo_write(repo, stdout);