X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fhelix2solv.c;h=d893fb122a1fbbdfe150e808b70859b993efb652;hb=294b4f8038f0914011ebd93e77383690c862e19c;hp=1d039e234387f53e7478591061dfe7a98016d838;hpb=13127796e4361ad8c74701736692b4ef159ec317;p=platform%2Fupstream%2Flibsolv.git diff --git a/tools/helix2solv.c b/tools/helix2solv.c index 1d039e2..d893fb1 100644 --- a/tools/helix2solv.c +++ b/tools/helix2solv.c @@ -23,14 +23,19 @@ #include "pool.h" #include "repo_helix.h" -#include "repo_write.h" +#include "common_write.h" int main(int argc, char **argv) { Pool *pool = pool_create(); - Repo *repo = pool_addrepo_helix(pool, stdin); - pool_writerepo(pool, repo, stdout); + Repo *repo = repo_create(pool, ""); + if (repo_add_helix(repo, stdin, 0)) + { + fprintf(stderr, "helix2solv: %s\n", pool_errstr(pool)); + exit(1); + } + tool_write(repo, 0, 0); pool_free(pool); exit(0); }