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

Unified Diff: pylib/gyp/input.py

Issue 9451001: Don't allow empty string as first argument of action. (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 | test/rules-dirname/src/subdir/input-rule-dirname.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/input.py
===================================================================
--- pylib/gyp/input.py (revision 1232)
+++ pylib/gyp/input.py (working copy)
@@ -1,4 +1,4 @@
-# Copyright (c) 2011 Google Inc. All rights reserved.
+# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -2152,6 +2152,9 @@
"An action must have an 'action_name' field." %
target_name)
inputs = action.get('inputs', [])
+ action_command = action.get('action')
+ if action_command and not action_command[0]:
+ raise Exception("Empty action as command in target %s." % target_name)
def ValidateRunAsInTarget(target, target_dict, build_file):
« no previous file with comments | « no previous file | test/rules-dirname/src/subdir/input-rule-dirname.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698