Created
June 15, 2018 15:06
-
-
Save brianjmurrell/e62c9e6f217cbd3a51f8f83ae5943f88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./build/make/tools/releasetools/edify_generator.py.orig 2018-06-15 11:04:03.974973549 -0400 | |
+++ ./build/make/tools/releasetools/edify_generator.py 2018-06-15 11:04:45.895051297 -0400 | |
@@ -145,13 +145,7 @@ | |
def AssertDevice(self, device): | |
"""Assert that the device identifier is the given string.""" | |
- cmd = ('assert(' + | |
- ' || \0'.join(['getprop("ro.product.device") == "%s" || getprop("ro.build.product") == "%s"' | |
- % (i, i) for i in device.split(",")]) + | |
- ' || abort("E%d: This package is for device: %s; ' + | |
- 'this device is " + getprop("ro.product.device") + ".");' + | |
- ');') % (common.ErrorCode.DEVICE_MISMATCH, device) | |
- self.script.append(self.WordWrap(cmd)) | |
+ self.script.append('') | |
def AssertSomeBootloader(self, *bootloaders): | |
"""Assert that the bootloader version is one of *bootloaders.""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment