Merge branch 'master' of gitorious.org:opensuse/sat-solver
[platform/upstream/libsolv.git] / tools / helix2solv.c
index 5abd8b4..a7100f5 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * helix2solv.c
  * 
  * parse 'helix' type xml and write out .solv file
 #include <string.h>
 
 #include "pool.h"
-#include "source_helix.h"
-#include "source_write.h"
+#include "repo_helix.h"
+#include "common_write.h"
 
 int
 main(int argc, char **argv)
 {
   Pool *pool = pool_create();
-  Source *source = pool_addsource_helix(pool, stdin);
-  pool_writesource(pool, source, stdout);
+  Repo *repo = repo_create(pool, "<stdin>");
+  repo_add_helix(repo, stdin, 0);
+  tool_write(repo, 0, 0);
   pool_free(pool);
   exit(0);
 }