From 52c091adc08bff5b46707402205785cd75de23ba Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Tue, 10 Jul 2012 14:08:35 -0700 Subject: [PATCH] Add manifest group awareness. This is necesary since a manifest may have only a subset of groups turned on- say, minilayout, thus do the check. BUG=chromium-os:32247,chromium-os:31867,chromium-os:9914 TEST=repo init -g minilayout && \ ./setup_board --board=x86-alex && \ cros_sdk -- cros_workon start chromeos-base/chromeos-chrome Change-Id: I5320f6419632972671f9082a18725a00517e3f80 Reviewed-on: https://gerrit.chromium.org/gerrit/27062 Commit-Ready: Brian Harring Reviewed-by: Brian Harring Tested-by: Brian Harring --- cros_workon | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cros_workon b/cros_workon index e9d7c674e5..7e346c5e9a 100755 --- a/cros_workon +++ b/cros_workon @@ -249,7 +249,12 @@ regen_manifest_and_sync() { # Nothing to do unless you are working on the minilayout local manifest=${CHROOT_TRUNK_DIR}/.repo/manifest.xml if [ $(basename $(readlink -f ${manifest})) != "minilayout.xml" ]; then + if [ -z "$(git config -f "${CHROOT_TRUNK_DIR}/.repo/manifests.git/config" \ + --get manifest.groups)" ]; then + # Reaching here means that it's a full manifest w/out any groups set- + # literal full manifest. return + fi fi local need_repo_sync=