Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa9de0aa authored by Tao Bao's avatar Tao Bao
Browse files

releasetools: Fix an issue when using APEX container key mapping.

The keys_info in the touched code is a tuple, which is immutable.

Bug: 123716522
Test: Run sign_target_files_apks.py with '-e foo.apex=bar' that replaces
      the APEX container key.

Change-Id: I4e57e46c93a56b7f6646764d021ebb42c19bf7f5
parent 0573298a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ def GetApexKeys(keys_info, key_map):
    if apex not in keys_info:
      continue
    assert key, 'Presigned APEX container for {} is not allowed'.format(apex)
    keys_info[apex][1] = key_map.get(key, key)
    keys_info[apex] = (keys_info[apex][0], key_map.get(key, key))

  return keys_info