squisher: Don't set the OTAPACKAGE name

Instead of setting the OTAPACKAGE name here, expect
OTAPACKAGE will be passed to us. This fixes an issue when
BUILD_NUMBER is defined in an environment with automated
builds.

Change-Id: I0634416e5332790d314f6a70313ea67821fd1331
This commit is contained in:
Brint E. Kriebel 2012-09-20 10:51:45 -06:00 committed by Gerrit Code Review
parent abfc079413
commit 5ed21af23a
1 changed files with 0 additions and 9 deletions

View File

@ -23,15 +23,6 @@ if [ -z "$OUT" -o ! -d "$OUT" ]; then
exit 1
fi
if [ "$TARGET_BUILD_TYPE" = "debug" ]; then
OTAPACKAGE=$OUT/${TARGET_PRODUCT}_debug-ota-$TARGET_BUILD_VARIANT.$USER.zip
elif [ "$TARGET_BUILD_VARIANT" = "userdebug" ]; then
OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-eng.$USER.zip
elif [ "$TARGET_BUILD_VARIANT" = "user" ]; then
OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-eng.$USER.zip
else
OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip
fi
if [ ! -f "$OTAPACKAGE" ]; then
echo "$OTAPACKAGE doesn't exist!";
exit 1