/
niceSOFT
/
libsolv
Обзор
Документация
Войти
/
niceSOFT
/
libsolv
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tools/comps2solv.c
40 строк
734 B
Michael Schroeder
Drop undocumented old cruft from the tools code
19 сен 2018, 13:34
19 сен 2018, 13:34
63491bc
Код
Авторство
О чём код?
/* * Copyright (c) 2012, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ /* * comps2solv.c * * parse Fedora Comps type xml and write out .solv file * * reads from stdin * writes to stdout */ #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "pool.h" #include "repo.h" #include "repo_comps.h" #include "common_write.h" int main(int argc, char **argv) { Pool *pool = pool_create(); Repo *repo = repo_create(pool, "<stdin>"); if (repo_add_comps(repo, stdin, 0)) { fprintf(stderr, "comps2solv: %s\n", pool_errstr(pool)); exit(1); } tool_write(repo, stdout); pool_free(pool); exit(0); }