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

Unified Diff: chromeos_interface.py

Issue 6649008: Fix SAFT operation on Alex. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/saft.git@master
Patch Set: Fix SAFT operation. Created 9 years, 9 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 | flashrom_handler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos_interface.py
diff --git a/chromeos_interface.py b/chromeos_interface.py
index 2db0a1aeb96b3b06fa559a85ce182509318b63a0..fe5b76e01ad38275b51804b5f548606b838e64c8 100755
--- a/chromeos_interface.py
+++ b/chromeos_interface.py
@@ -59,7 +59,8 @@ class ChromeOSInterface(object):
def target_hosted(self):
'''Return True if running on a ChromeOS target.'''
- return 'chromeos' in open('/proc/version_signature', 'r').read()
+ signature = open('/proc/version_signature', 'r').read()
+ return re.search(r'chrom(ium|e)os', signature, re.IGNORECASE) != None
def state_dir_file(self, file_name):
'''Get a full path of a file in the state directory.'''
« no previous file with comments | « no previous file | flashrom_handler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698