Make devserver backward compatible when staging older builds

We recently added a manifest file in the Google Storage bucket so that
devserver can get the bucket listing without using "gsutil ls", which
supports only the eventual consistency model. However, older builds
which are already on the Google Storage do not have manifest files in
their buckets. This change makes devserver_util backward compatible by
falling back to using "gsutil ls" whenever the manifest file is not
present.

BUG=chromium-os:33802
TEST=local devserver

Change-Id: I01eaec04777a8015de24600ecc3a92566e7edd62
Reviewed-on: https://gerrit.chromium.org/gerrit/31148
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Yu-Ju Hong <yjhong@chromium.org>
1 file changed