Browse Source

push changes before postcommit

master
belliash 8 years ago
parent
commit
a2b90fe936
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      ezsync

+ 6
- 6
ezsync View File

@@ -199,6 +199,12 @@ printInfo "Updating constructed Portage cache..."
run "FEATURES="metadata-transfer" PORTDIR="${PORTAGESDIR}/${PORTAGE_BUILD[0]}" egencache --update --portdir=${PORTAGESDIR}/${PORTAGE_BUILD[0]} --jobs=${MAXJOBS} --load-average=${LOADAVERAGE} --tolerant"
[ ${?} -ne 0 ] && die "EzBuild was unable to regenerate cache!" 32

# Optionally commit all changes to remote Portage repository
if ! isEnabled ${EZOPT_NOPUSH}; then
pushRepository ${PORTAGESDIR}/${PORTAGE_BUILD[0]} ${PORTAGE_BUILD[1]} "Automatic update [$(date +"${PUSHDATEFORMAT}")]."
[ ${?} -ne 0 ] && die "Ezbuild was unable to record changes to the remote Portage repository!" 64
fi

# Execute all 'postcommit' enabled modules
for MODULE in ${MODULES_POSTCOMMIT}; do
loadModule ${MODULE} "postcommit"
@@ -211,11 +217,5 @@ for MODULE in ${MODULES_POSTCOMMIT}; do
unloadModule
done

# Optionally commit all changes to remote Portage repository
if ! isEnabled ${EZOPT_NOPUSH}; then
pushRepository ${PORTAGESDIR}/${PORTAGE_BUILD[0]} ${PORTAGE_BUILD[1]} "Automatic update [$(date +"${PUSHDATEFORMAT}")]."
[ ${?} -ne 0 ] && die "Ezbuild was unable to record changes to the remote Portage repository!" 64
fi

# Finally quit the application
quit

Loading…
Cancel
Save