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

Unified Diff: tools/cr/cr/commands/init.py

Issue 1566393002: Fix condition error from crrev.com/1562083002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_cr
Patch Set: Created 4 years, 11 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/cr/cr/commands/init.py
diff --git a/tools/cr/cr/commands/init.py b/tools/cr/cr/commands/init.py
index 7b09330cbf8c81c91c59d52cfe4340a33705de81..04692bae6cbff91728918c4e7f0677cd75288f27 100644
--- a/tools/cr/cr/commands/init.py
+++ b/tools/cr/cr/commands/init.py
@@ -87,7 +87,7 @@ class InitCommand(cr.Command):
# substrings. This is done to support "linuxchromeos" and "linux".
platform = max(matches, key=len)
all_matches_are_substrings = all(p in platform for p in matches)
- if all_matches_are_substrings or not matches:
+ if not all_matches_are_substrings or not matches:
print 'Platform is not set, and could not be guessed from', base
print 'Should be one of', ','.join(platforms)
if len(matches) > 1:
« 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