OSDN Git Service

Merge \"Remove obsolete MTD support from the releasetools scripts.\"
authorElliott Hughes <enh@google.com>
Fri, 17 Jun 2016 04:59:26 +0000 (04:59 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Fri, 17 Jun 2016 04:59:26 +0000 (04:59 +0000)
am: 63fc2b6766

Change-Id: I26ed21479ab52d535bcc99b13e55a1476a02f76c

1  2 
tools/releasetools/build_image.py
tools/releasetools/common.py
tools/releasetools/edify_generator.py

Simple merge
Simple merge
@@@ -176,11 -173,10 +176,11 @@@ class EdifyGenerator(object)
      self.script.append(
          'apply_patch_check("%s"' % (filename,) +
          "".join([', "%s"' % (i,) for i in sha1]) +
 -        ') || abort("\\"%s\\" has unexpected contents.");' % (filename,))
 +        ') || abort("E%d: \\"%s\\" has unexpected contents.");' % (
 +            common.ErrorCode.BAD_PATCH_FILE, filename))
  
    def Verify(self, filename):
-     """Check that the given file (or MTD reference) has one of the
+     """Check that the given file has one of the
      given hashes (encoded in the filename)."""
      self.script.append(
          'apply_patch_check("{filename}") && '