From 746137e4e44abee5c2bbb5f3e6e0f9e8aefc10ee Mon Sep 17 00:00:00 2001 From: oddlama Date: Wed, 2 Jun 2021 17:16:47 +0200 Subject: [PATCH] Implemented portage git sync. Closes #8. --- scripts/main.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index 60da14d..979fb0b 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -284,7 +284,27 @@ function main_install_gentoo_in_chroot() { # Sync portage einfo "Syncing portage tree" - try emerge-webrsync + if [[ "$PORTAGE_SYNC_TYPE" == "git" ]]; then + mkdir_or_die 0755 "/etc/portage/repos.conf" + cat > /etc/portage/repos.conf/gentoo.conf <