diff --git a/etc/paludis/hooks/sync_all_post/01-sync_cache.bash b/etc/paludis/hooks/sync_all_post/01-sync_cache.bash index 6505c40..7c3ae28 100644 --- a/etc/paludis/hooks/sync_all_post/01-sync_cache.bash +++ b/etc/paludis/hooks/sync_all_post/01-sync_cache.bash @@ -6,7 +6,7 @@ source "/etc/paludis/hooks/util_functions.bash" # You may change this to only update cache of specific repositories. # Should at least include 'gentoo'. Default is all repositories. -repository_list=( $(print_ebuild_repositories) ) +repository_list=( $(${CAVE} print-repositories --format e) ) # Number of jobs for egencache, default is number or processors. egencache_jobnum="$(nproc)" diff --git a/etc/paludis/hooks/util_functions.bash b/etc/paludis/hooks/util_functions.bash index 1e4ca91..6a430a9 100644 --- a/etc/paludis/hooks/util_functions.bash +++ b/etc/paludis/hooks/util_functions.bash @@ -6,11 +6,3 @@ eend_die() { eend "$@" [[ $1 -ne 0 ]] && exit $1 } - -print_ebuild_repositories() { - local i - for i in $(${CAVE} print-repositories) ; do - [[ "$(${CAVE} print-repository-metadata --format "%v" --raw-name format $i)" == "e" ]] && - echo $i - done -}