From e9e05e9b7403e48baa606dcdbbacbf3674f8f737 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 16 Jan 2012 13:04:02 +0100 Subject: [PATCH] Regenerate cache --- ezsync | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ezsync b/ezsync index 5143b97..884ad8f 100755 --- a/ezsync +++ b/ezsync @@ -182,5 +182,10 @@ for OVERLAY in ${MERGED_PORTAGE[*]}; do fi done +# Regenerate Portage cache +printInfo "Updating constructed Portage cache..." +run "FEATURES="metadata-transfer" PORTDIR="${PORTAGESDIR}/${PORTAGE_BUILD[0]}" egencache --update --portdir=${PORTAGESDIR}/${PORTAGE_BUILD[0]} --jobs=${MAXJOBS} --tolerant" +[ ${?} -ne 0 ] && die "EzBuild was unable to regenerate cache!" + # Finally quit the application quit