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

Unified Diff: tools/sync-webkit-git.py

Issue 3015007: sync-webkit-git: exit with an error code on failure (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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: tools/sync-webkit-git.py
diff --git a/tools/sync-webkit-git.py b/tools/sync-webkit-git.py
index 4b993575e28fcbfcb9f6834217ef38ebdcc362f3..0f695212b984c61f483b0ea0e1a953eefdebca43 100755
--- a/tools/sync-webkit-git.py
+++ b/tools/sync-webkit-git.py
@@ -105,7 +105,7 @@ def UpdateCurrentCheckoutIfAppropriate():
print "has some other branch ('%s') checked out." % branch
print "Run 'git checkout gclient' under third_party/WebKit if you want"
print "to switch it to the version requested by DEPS."
- return
+ return 1
if subprocess.call(['git', 'diff-index', '--exit-code', '--shortstat',
'HEAD']):
@@ -122,16 +122,16 @@ def main():
print "See http://code.google.com/p/chromium/wiki/UsingWebKitGit for"
print "setup instructions."
- return
+ return 1
webkit_rev = GetWebKitRev()
print 'Desired revision: r%s.' % webkit_rev
os.chdir('third_party/WebKit')
changed = UpdateGClientBranch(webkit_rev)
if changed:
- UpdateCurrentCheckoutIfAppropriate()
+ return UpdateCurrentCheckoutIfAppropriate()
else:
print "Already on correct revision."
tony 2010/07/17 01:26:54 Nit: Specify a return 0 at the end of the function
if __name__ == '__main__':
- main()
+ sys.exit(main())
« 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