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>
22 #include "repo_rpmdb.h"
23 #include "repo_solv.h"
24 #include "common_write.h"
27 main(int argc, char **argv)
29 Pool *pool = pool_create();
36 if ((fp = fopen(argv[1], "r")) == NULL)
41 ref = repo_create(refpool, "ref");
42 repo_add_solv(ref, fp);
46 repo = repo_create(pool, "installed");
47 repo_add_rpmdb(repo, ref, "/");
50 if (ref->pool != pool)
57 tool_write(repo, 0, 0);