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

Unified Diff: src/platform/dev/autoupdate.py

Issue 574020: Adds support for autoupdating portage with portage images (Closed)
Patch Set: Created 10 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dev/autoupdate.py
diff --git a/src/platform/dev/autoupdate.py b/src/platform/dev/autoupdate.py
index 2f0fe956b543fcd3af230c68e789b46a49b7d41d..f3b74479fe628d5ce4b9c647ef2cdad9a0a8756b 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -47,6 +47,9 @@ class Autoupdate(BuildObject):
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):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698