diff options
author | Steve Kondik <steve@cyngn.com> | 2015-12-07 16:28:39 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-12-07 16:28:39 -0800 |
commit | f24fab8e2916f68416d4775422f8d082129cb823 (patch) | |
tree | 0357f6e2f82d507961b7652735b44890bdafda4d /tools/releasetools/common.py | |
parent | 059dafe9677726add62cf3d4f998246558b84e10 (diff) | |
parent | 610455ddd4d110f7c5be75beb24bc7a0809028a6 (diff) | |
download | build-f24fab8e2916f68416d4775422f8d082129cb823.zip build-f24fab8e2916f68416d4775422f8d082129cb823.tar.gz build-f24fab8e2916f68416d4775422f8d082129cb823.tar.bz2 |
Merge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/build into cm-13.0
Android 6.0.1 release 3
Change-Id: Ifd951be596daad53785b191ddce316a6a4a96e03
Diffstat (limited to 'tools/releasetools/common.py')
-rw-r--r-- | tools/releasetools/common.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 3ea0acb..47cf759 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -59,6 +59,8 @@ class Options(object): self.device_specific = None self.extras = {} self.info_dict = None + self.source_info_dict = None + self.target_info_dict = None self.worker_threads = None @@ -1237,7 +1239,11 @@ class BlockDifference(object): self.path = os.path.join(tmpdir, partition) b.Compute(self.path) - _, self.device = GetTypeAndDevice("/" + partition, OPTIONS.info_dict) + if src is None: + _, self.device = GetTypeAndDevice("/" + partition, OPTIONS.info_dict) + else: + _, self.device = GetTypeAndDevice("/" + partition, + OPTIONS.source_info_dict) def WriteScript(self, script, output_zip, progress=None): if not self.src: @@ -1438,6 +1444,8 @@ def MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img, output_sink("recovery-from-boot.p", patch) try: + # The following GetTypeAndDevice()s need to use the path in the target + # info_dict instead of source_info_dict. boot_type, boot_device = GetTypeAndDevice("/boot", info_dict) recovery_type, recovery_device = GetTypeAndDevice("/recovery", info_dict) except KeyError: |