/
githubmirror
/
rpm
Обзор
Документация
Войти
/
githubmirror
/
rpm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
build/parseList.cc
32 строки
684 B
Panu Matilainen
Mass rename C++ sources to .cc/.hh extension
04 окт 2024, 11:14
04 окт 2024, 11:14
a45134e
Код
Авторство
О чём код?
/** \ingroup rpmbuild * \file build/parseBuildInstallClean.c * Parse %build/%install/%clean section from spec file. */ #include "system.h" #include <rpm/rpmlog.h> #include "rpmbuild_internal.hh" #include "debug.h" int parseList(rpmSpec spec, const char *name, rpmTagVal tag) { int res = PART_ERROR; ARGV_t lst = NULL; /* There are no options to %patchlist and %sourcelist */ if ((res = parseLines(spec, (STRIP_TRAILINGSPACE | STRIP_COMMENTS), &lst, NULL)) == PART_ERROR) { goto exit; } for (ARGV_const_t l = lst; l && *l; l++) { if (rstreq(*l, "")) continue; addSource(spec, 0, *l, tag); } exit: argvFree(lst); return res; }