From e87344f84daf2f74b89de6c50a31049d82d7385d Mon Sep 17 00:00:00 2001 From: hasufell Date: Thu, 5 Nov 2015 15:50:21 +0100 Subject: [PATCH] Don't use rsync for cache, it is insecure --- hooks/sync_post/01-sync_gentoo_cache.bash | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hooks/sync_post/01-sync_gentoo_cache.bash b/hooks/sync_post/01-sync_gentoo_cache.bash index d82af88..3dededc 100644 --- a/hooks/sync_post/01-sync_gentoo_cache.bash +++ b/hooks/sync_post/01-sync_gentoo_cache.bash @@ -7,10 +7,6 @@ if [[ ${TARGET} == gentoo ]] ; then # Number of jobs for egencache, default is number or processors. egencache_jobnum="$(nproc)" - ebegin "Fetching pre-generated metadata cache for gentoo repository" - rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${PORTDIR}"/metadata/md5-cache/ - eend $? - ebegin "Updating metadata cache for repository ${TARGET}" egencache --jobs=${egencache_jobnum} --repo=${TARGET} --update --update-use-local-desc eend $?