diff --git a/build_library/generate_au_zip.py b/build_library/generate_au_zip.py index 61717eb73c..d943d73f05 100755 --- a/build_library/generate_au_zip.py +++ b/build_library/generate_au_zip.py @@ -19,6 +19,7 @@ import tempfile # GLOBALS STATIC_FILES = ['/usr/bin/old_bins/cgpt', '/usr/bin/cros_generate_update_payload', + '~/trunk/.repo/manifests/version.txt', '~/trunk/src/scripts/chromeos-common.sh', '~/trunk/src/scripts/common.sh', ] diff --git a/common.sh b/common.sh index a72e7a8451..010334b33b 100644 --- a/common.sh +++ b/common.sh @@ -305,7 +305,10 @@ BUILD_LIBRARY_DIR="${SCRIPTS_DIR}/build_library" # Source COREOS_* from manifest for version information. COREOS_VERSION_FILE="${GCLIENT_ROOT}/.repo/manifests/version.txt" -source "$COREOS_VERSION_FILE" || die "Cannot source $COREOS_VERSION_FILE" +if [[ ! -f "${COREOS_VERSION_FILE}" ]]; then + COREOS_VERSION_FILE="${SCRIPT_LOCATION}/version.txt" +fi +source "$COREOS_VERSION_FILE" || die "Cannot source version.txt" # Official builds must set COREOS_OFFICIAL=1 to use an official version. if [ ${COREOS_OFFICIAL:-0} -ne 1 ]; then