Chromium Code Reviews| Index: bin/cros_mark_chrome_as_stable.py |
| diff --git a/bin/cros_mark_chrome_as_stable.py b/bin/cros_mark_chrome_as_stable.py |
| index 23655500f9bab2cce4a5b4850eff27b54e2e3ed0..d90eec4c50359144170a1c1d0d8a1d41aff63bb8 100755 |
| --- a/bin/cros_mark_chrome_as_stable.py |
| +++ b/bin/cros_mark_chrome_as_stable.py |
| @@ -146,6 +146,9 @@ class ChromeEBuild(cros_mark_as_stable.EBuild): |
| else: |
| return (-1) |
| + def __str__(self): |
| + return self.ebuild_path |
| + |
| def FindChromeCandidates(overlay_dir): |
| """Return a tuple of chrome's unstable ebuild and stable ebuilds. |
| @@ -166,7 +169,7 @@ def FindChromeCandidates(overlay_dir): |
| if not ebuild.chrome_version: |
| Warning('Poorly formatted ebuild found at %s' % path) |
| else: |
| - if not ebuild.is_stable: |
| + if '9999' in ebuild.version: |
|
sosa
2010/12/16 19:11:34
Since we're commiting unstable ebuilds until we ha
|
| unstable_ebuilds.append(ebuild) |
| else: |
| stable_ebuilds.append(ebuild) |
| @@ -272,6 +275,8 @@ def MarkChromeEBuildAsStable(stable_candidate, unstable_ebuild, chrome_rev, |
| redirect_stderr=True, |
| redirect_stdout=True, |
| exit_code=True): |
| + Info('Previous ebuild with same version found and no 9999 changes found.' |
| + ' Nothing to do.') |
| os.unlink(new_ebuild_path) |
| return None |