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

Unified Diff: build/android/pylib/android_commands.py

Issue 10930002: Fix android_build_commands.FileExistsOnDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 1f30e2f046854e349efa5f0c3c38e66a2439ae48..f3a4734f5b65b07dde1e09e07aa42d5cee56628c 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -1015,7 +1015,7 @@ class AndroidCommands(object):
return int(status) == 0
status = self._adb.SendShellCommand('ls "%s"' % (file_name))
- if not status[0].find('No such file or directory'):
+ if status[0].find('No such file or directory') == -1:
return True
return False
« 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