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 = pool_addrepo_solv(refpool, fp, "rpmdb");
44 Repo *repo = pool_addrepo_rpmdb(pool, ref);
47 if (ref->pool != pool)
50 pool_freerepo(pool, ref);
54 pool_writerepo(pool, repo, stdout);