2 * Copyright (c) 2019, SUSE LLC
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
11 * parse a conda repository file
17 #include <sys/types.h>
25 #include "repo_conda.h"
26 #include "solv_xfopen.h"
27 #include "common_write.h"
33 fprintf(stderr, "\nUsage:\n"
35 " reads a 'synthesis' repository from <stdin> and writes a .solv file to <stdout>\n"
36 " -h : print help & exit\n"
42 main(int argc, char **argv)
48 while ((c = getopt(argc, argv, "h")) >= 0)
61 repo = repo_create(pool, "<stdin>");
62 if (repo_add_conda(repo, stdin, 0))
64 fprintf(stderr, "conda2solv: %s\n", pool_errstr(pool));
67 repo_internalize(repo);
68 tool_write(repo, stdout);