Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: cros_download_latest_image

Issue 3060043: Making default to LOGNAME work correctly. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: fix Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« bin/cros_gsdcurl.py ('K') | « bin/cros_gsdcurl.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_download_latest_image
diff --git a/cros_download_latest_image b/cros_download_latest_image
index a0715d9189d536eb59f9439b7e397ee0fcc5b0f2..f749d8fb6ff6f7104fe71b30c2a9f2d151af98cb 100755
--- a/cros_download_latest_image
+++ b/cros_download_latest_image
@@ -30,19 +30,25 @@ IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
if [ $FLAGS_board = x86-generic ]; then
if [ "$FLAGS_incremental" -eq "$FLAGS_TRUE" ]; then
- URL_PREFIX="http://codg174.jail.google.com/archive/x86-generic-inc"
+ URL_PREFIX="https://sandbox.google.com/storage/chromeos-archive/x86-generic-bin"
else
- URL_PREFIX="http://codg163.jail.google.com/archive/x86-generic-rel"
+ URL_PREFIX="https://sandbox.google.com/storage/chromeos-archive/x86-generic-rel"
fi
else
die "Unrecognized board: $FLAGS_board"
fi
-LATEST_BUILD=$(curl -s $URL_PREFIX/LATEST)
+read -p "Username [${LOGNAME}]: " GSDCURL_USERNAME
+export GSDCURL_USERNAME
+read -s -p "Password: " GSDCURL_PASSWORD
+export GSDCURL_PASSWORD
+
+LATEST_BUILD=$(bin/cros_gsdcurl.py -s $URL_PREFIX/LATEST)
LATEST_IMAGE_DIR="$IMAGES_DIR/$LATEST_BUILD"
if [ ! -e $LATEST_IMAGE_DIR/chromiumos_base_image.bin ]; then
mkdir -p $LATEST_IMAGE_DIR
- curl $URL_PREFIX/$LATEST_BUILD/image.zip -o $LATEST_IMAGE_DIR/image.zip \
+ bin/cros_gsdcurl.py $URL_PREFIX/$LATEST_BUILD/image.zip -o \
+ $LATEST_IMAGE_DIR/image.zip \
|| die "Could not download image.zip"
( cd $LATEST_IMAGE_DIR && unzip -qo image.zip ) \
|| die "Could not unzip image.zip"
« bin/cros_gsdcurl.py ('K') | « bin/cros_gsdcurl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698