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

Unified Diff: pylib/gyp/mac_tool.py

Issue 9407030: mac: Let `mac-tool flock` exit with the exit code of the child program. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 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: pylib/gyp/mac_tool.py
===================================================================
--- pylib/gyp/mac_tool.py (revision 1202)
+++ pylib/gyp/mac_tool.py (working copy)
@@ -20,7 +20,9 @@
def main(args):
executor = MacTool()
- executor.Dispatch(args)
+ exit_code = executor.Dispatch(args)
+ if exit_code is not None:
+ sys.exit(exit_code)
class MacTool(object):
@@ -33,7 +35,7 @@
raise Exception("Not enough arguments")
method = "Exec%s" % self._CommandifyName(args[0])
- getattr(self, method)(*args[1:])
+ return getattr(self, method)(*args[1:])
Nico 2012/02/16 02:13:46 ExecFlock() below does `return subprocess.call()`
def _CommandifyName(self, name_string):
"""Transforms a tool name like copy-info-plist to CopyInfoPlist"""
« 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