XBuddy: Map base versions into fully qualified build version.

This uses LATEST-x.y.z markers in GS to map base version numbers (e.g.
6801.0.0) to fully qualified build versions including a release number
(e.g. R42-6801.0.0) for a given board. This is needed in order to fetch
SDK images corresponding to an SDK version, which does not include
a release number.

BUG=brillo:336
TEST=Unit tests.
TEST=Manual test with cros flash --project-sdk.

Change-Id: I59dd6294d52bbb4247e8c3c5066a5a2ff753508e
Reviewed-on: https://chromium-review.googlesource.com/251468
Trybot-Ready: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/devserver_constants.py b/devserver_constants.py
index 222a1e5..35ac8b9 100644
--- a/devserver_constants.py
+++ b/devserver_constants.py
@@ -9,6 +9,8 @@
 CHANNELS = 'canary', 'dev', 'beta', 'stable'
 GS_IMAGE_DIR = 'gs://chromeos-image-archive'
 GS_LATEST_MASTER = '%(image_dir)s/%(board)s%(suffix)s/LATEST-master'
+GS_LATEST_BASE_VERSION = (
+    '%(image_dir)s/%(board)s%(suffix)s/LATEST-%(base_version)s')
 IMAGE_DIR = '%(board)s%(suffix)s/%(version)s'
 
 GS_RELEASES_DIR = 'gs://chromeos-releases'