portageq — excluding all repositories, not just ::gentoo

This commit is contained in:
Horea Christian 2023-05-23 18:06:00 -04:00
parent 1c128276bf
commit 7fe3a53d7e

View file

@ -212,7 +212,10 @@ then
EXCLUDES+=("--exclude=$(realpath "$STAGE4_FILENAME")")
if ((HAS_PORTAGEQ))
then
EXCLUDES+=("--exclude=$(portageq get_repo_path / gentoo)/*")
PORTAGEQ_REPOS=$(portageq get_repos /)
for i in ${PORTAGEQ_REPOS[@]}; do
EXCLUDES+=("--exclude=$(portageq get_repo_path / ${i})/*")
done
EXCLUDES+=("--exclude=$(portageq distdir)/*")
else
EXCLUDES+=("${EXCLUDES_DEFAULT_PORTAGE[@]}")