From 6ba81ea88d3925a8fbc36c24289e4c94f32b3609 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Sun, 3 May 2020 15:20:08 +0200 Subject: Fix the import of local useflags So far local useflags have not been imported as use.local.desc is part of .gitignore. This has been fixed in this commit by explicitly importing/updating profiles/use.local.desc during each update. Signed-off-by: Max Magorsch --- bin/fullupdate.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/fullupdate.sh b/bin/fullupdate.sh index d71c895..a798e42 100755 --- a/bin/fullupdate.sh +++ b/bin/fullupdate.sh @@ -11,11 +11,25 @@ update_repository(){ fi } -cleanup_database(){ +update_md5cache(){ + mkdir -p /var/cache/pgo-egencache + cd /mnt/packages-tree/gentoo/ || exit 1 + + #echo 'FEATURES="-userpriv -usersandbox -sandbox"' >> /etc/portage/make.conf + + egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo] + location = /mnt/packages-tree/gentoo' --update + + egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo] + location = /mnt/packages-tree/gentoo' --update-use-local-desc +} + +fullupdate_database(){ cd /mnt/packages-tree/gentoo/ || exit 1 /go/src/soko/bin/soko fullupdate } update_repository -cleanup_database +update_md5cache +fullupdate_database -- cgit v1.2.3-65-gdbad