Merge branch 'master' of gitorious.org:opensuse/sat-solver
[platform/upstream/libsolv.git] / tools / helix2solv.c
index 1d039e2..a7100f5 100644 (file)
 
 #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, "<stdin>");
+  repo_add_helix(repo, stdin, 0);
+  tool_write(repo, 0, 0);
   pool_free(pool);
   exit(0);
 }