diff --git a/ezsync b/ezsync index dd4aaaa..a478843 100755 --- a/ezsync +++ b/ezsync @@ -89,3 +89,8 @@ trap 'die "Process killed! This may lead into unexpected problems!"' 1 2 3 9 15 printInfo "Loading public keys..." eval `keychain --noask --eval id_dsa id_rsa &> /dev/null` [ ${?} -ne 0 ] && die "EzBuild was unable to load public keys!" 1 + +# Update local copy of Portage that is being built +printInfo "Refreshing local build Portage tree..." +synchronizeRepository ${PORTAGESDIR}/${PORTAGE_BUILD[0]} ${PORTAGE_BUILD[1]} ${PORTAGE_BUILD[2]} ${PORTAGE_BUILD[3]} +[ ${?} -ne 0 ] && die "EzBuild was unable to refresh local copy of build Portage tree!"