Remove running of gerrit source transition chroot-upgrade hook.

The code has been in here long enough - most people should be
transitioned over who are using gerrit-source.  We've also already
removed the chrome projects from the default manifest, and things look
good so far.

BUG=chromium-os:32963
TEST=remote trybot

Change-Id: Idd5e3a2ad77ea86c7316a9d50f5da1a5fdf01d8b
Reviewed-on: https://gerrit.chromium.org/gerrit/31161
Reviewed-by: Brian Harring <ferringb@chromium.org>
Commit-Ready: Ryan Cui <rcui@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
This commit is contained in:
Ryan Cui 2012-08-22 15:15:00 -07:00 committed by Gerrit
parent 919bf0c5b8
commit be24c739e9

View File

@ -611,16 +611,6 @@ else
cmd=( sudo -i -u "$USER" )
fi
# TODO(rcui): Remove this hook on 8/26/2012.
# crosbug.com/32963
if [ $FLAGS_early_make_chroot -eq $FLAGS_FALSE ]; then
chroot_script_root="\${HOME}/trunk/src/scripts"
hook_rel_path="chroot_version_hooks.d/44_fix_gerrit_chrome"
gerrit_chrome_hook="${chroot_script_root}/${hook_rel_path}"
sudo -- chroot "${FLAGS_chroot}" "${cmd[@]}" "${CHROOT_PASSTHRU[@]}" \
bash -c "source \"${gerrit_chrome_hook}\""
fi
sudo -- chroot "${FLAGS_chroot}" "${cmd[@]}" "${CHROOT_PASSTHRU[@]}" "$@"
# Remove trap and explicitly unmount