Adds support for autoupdating portage with portage images
Review URL: http://codereview.chromium.org/574020
diff --git a/autoupdate.py b/autoupdate.py
index 2f0fe95..f3b7447 100644
--- a/autoupdate.py
+++ b/autoupdate.py
@@ -47,6 +47,9 @@
def GetLatestVersion(self, latest_image_path):
latest_version = latest_image_path.split('/')[-1]
+
+ # Removes the portage build prefix.
+ latest_version = latest_version.lstrip("g-")
return latest_version.split('-')[0]
def CanUpdate(self, client_version, latest_version):