xbuddy: Introduce the 'signed' image type
This change makes it possible to flash signed images from cros flash
using the `signed` alias.
BUG=chromium:852017
TEST=cros flash usb:// xbuddy://remote/eve-arcnext/latest-canary/signed
TEST=./xbuddy_unittest.py
Change-Id: I1c4c76ca0dd29845ef8639744745904e209a34eb
Reviewed-on: https://chromium-review.googlesource.com/1097609
Commit-Ready: Luis Hector Chavez <lhchavez@chromium.org>
Tested-by: Luis Hector Chavez <lhchavez@chromium.org>
Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/devserver.py b/devserver.py
index 71f14b1..82f7d40 100755
--- a/devserver.py
+++ b/devserver.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python2
-
+# -*- coding: utf-8 -*-
# Copyright (c) 2009-2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -284,7 +284,10 @@
'specified.')
if not dl:
archive_url = _canonicalize_archive_url(archive_url)
- dl = downloader.GoogleStorageDownloader(updater.static_dir, archive_url)
+ dl = downloader.GoogleStorageDownloader(
+ updater.static_dir, archive_url,
+ downloader.GoogleStorageDownloader.GetBuildIdFromArchiveURL(
+ archive_url))
elif not dl:
target = kwargs.get('target', None)
branch = kwargs.get('branch', None)