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 conda repository from <stdin> and writes a .solv file to <stdout>\n"
36 " -S : include signature data\n"
37 " -h : print help & exit\n"
43 main(int argc, char **argv)
50 while ((c = getopt(argc, argv, "hS")) >= 0)
58 flags |= CONDA_ADD_WITH_SIGNATUREDATA;
66 repo = repo_create(pool, "<stdin>");
67 if (repo_add_conda(repo, stdin, flags))
69 fprintf(stderr, "conda2solv: %s\n", pool_errstr(pool));
72 repo_internalize(repo);
73 tool_write(repo, stdout);