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

Commit ac936fd5 authored by Baligh Uddin's avatar Baligh Uddin
Browse files

Fix syntax error for SignApexFile

BUG: 145662097
TEST: Local smoke test which invokes sign_apex for local apex files.
parent e16258ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ logger = logging.getLogger(__name__)


def SignApexFile(avbtool, apex_file, payload_key, container_key,
                 signing_args=None):
                 no_hashtree, signing_args=None):
  """Signs the given apex file."""
  with open(apex_file, 'rb') as input_fp:
    apex_data = input_fp.read()
@@ -56,7 +56,7 @@ def SignApexFile(avbtool, apex_file, payload_key, container_key,
      container_key=container_key,
      container_pw=None,
      codename_to_api_level_map=None,
      no_hashtree=False,
      no_hashtree=no_hashtree,
      signing_args=signing_args)


+2 −1
Original line number Diff line number Diff line
@@ -38,5 +38,6 @@ class SignApexTest(test_utils.ReleaseToolsTestCase):
        'avbtool',
        foo_apex,
        payload_key,
        container_key)
        container_key,
        False)
    self.assertTrue(os.path.exists(signed_foo_apex))