From 7fe3a53d7ec4bf253229b5d83f8f9ae286ce7eec Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 23 May 2023 18:06:00 -0400 Subject: [PATCH] =?UTF-8?q?portageq=20=E2=80=94=20excluding=20all=20reposi?= =?UTF-8?q?tories,=20not=20just=20::gentoo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mkstage4.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkstage4.sh b/mkstage4.sh index c4c2cea..8b66318 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -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[@]}")