Commit 0808f899 authored by Anton Midyukov's avatar Anton Midyukov

features.in: initial feature blacklist-pkgs

The task is to prevent certain packages from getting into the image. For example, devel packages should not be in the certified image.
parent 7fe38236
=== blacklist-pkgs ===
Чёрный список пакетов BLACKLIST_PKGS, которых не должно быть ни в одной
из стадий сборки. Проверка осуществляется в самом конце сборки iso образа,
проверяются списки в .disk/pkglist iso образа.
Переменная BLACKLIST_PKGS содержит имена или части имён пакетов без
поддержки масок.
use/blacklist-pkgs:
@$(call add_feature)
@$(call xport,BLACKLIST_PKGS)
#!/bin/sh
cd "$WORKDIR"/.disk/pkglists || exit 1
for pkg in $GLOBAL_BLACKLIST_PKGS; do
grep -- "$pkg" $(find . -name rpm.txt) || continue
echo "Error: $pkg in blacklist found! See .disk/pklists/*/*/rpm.txt" >&2
exit 1
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment