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

Unified Diff: build/android/gyp/push_libraries.py

Issue 13877025: [Android] With gyp_managed_install no device is only a warning (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: build/android/gyp/push_libraries.py
diff --git a/build/android/gyp/push_libraries.py b/build/android/gyp/push_libraries.py
index 4f110a469fb441dd1b0c779ea69e6ed9337475a1..085d766453ac914d903165d99b18efbb18366c44 100755
--- a/build/android/gyp/push_libraries.py
+++ b/build/android/gyp/push_libraries.py
@@ -48,6 +48,11 @@ def DoPush(options):
def main(argv):
+ if not build_utils.IsDeviceReady():
+ build_utils.PrintBigWarning(
+ 'No device attached. Skipping native library push.')
newt (away) 2013/04/30 00:34:42 how about "Zero (or multiple) devices attached. S
+ return
+
parser = optparse.OptionParser()
parser.add_option('--libraries-dir',
help='Directory that contains stripped libraries.')

Powered by Google App Engine
This is Rietveld 408576698