From: hablich Date: Mon, 27 Apr 2015 11:32:29 +0000 (-0700) Subject: [release-tools] Return no hash if version is not available. X-Git-Tag: upstream/4.7.83~2970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d8b742b9d08a3cdc920af7563b9b96d16ba3c12;p=platform%2Fupstream%2Fv8.git [release-tools] Return no hash if version is not available. BUG= Review URL: https://codereview.chromium.org/1105023002 Cr-Commit-Position: refs/heads/master@{#28070} --- diff --git a/tools/release/releases.py b/tools/release/releases.py index a82da2bdd..5b826fccb 100755 --- a/tools/release/releases.py +++ b/tools/release/releases.py @@ -461,6 +461,8 @@ class RetrieveInformationOnChromeReleases(Step): self["chrome_releases"] = chrome_releases def _GetGitHashForV8Version(self, v8_version): + if v8_version == "N/A": + return "" if v8_version.split(".")[3]== "0": return self.GitGetHashOfTag(v8_version[:-2])