Ensure user has a chromium checkout before running chrome_set_ver.

Since the chrome sources have been removed from the default manifest,
leaving only a remnant inside chromium/src, we need to verify that they
actually have the chromium/src.git project checked out.

BUG=None
TEST=Local

Change-Id: I09f871034bb0d2664485a5ca6429204ebee67a19
Reviewed-on: https://gerrit.chromium.org/gerrit/33646
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: Jon Kliegman <kliegs@chromium.org>
Commit-Ready: Ryan Cui <rcui@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
This commit is contained in:
Ryan Cui 2012-09-19 16:05:53 -07:00 committed by Gerrit
parent 2f9a82df4c
commit e49d487245

View File

@ -296,8 +296,9 @@ chrome_to_live () {
# Switch to using repo manifest checkout of chromium src. # Switch to using repo manifest checkout of chromium src.
# Run chrome_set_ver to set DEPS # Run chrome_set_ver to set DEPS
# No chromium directory checked out in this repo; probably a minilayout. # No chromium/src.git project checked out, meaning user not using
if [ ! -d "${CHROOT_TRUNK_DIR}/chromium" ]; then # gerrit_source.xml
if [ ! -d "${CHROOT_TRUNK_DIR}/chromium/src/.git" ]; then
return return
fi fi