Merge "Adding output_path arg to sign_sepolicy_path call"

This commit is contained in:
Melisa Carranza Zúñiga
2022-08-25 08:25:33 +00:00
committed by Gerrit Code Review

View File

@@ -2392,6 +2392,7 @@ def SignSePolicy(sepolicy, key, password):
"""
if OPTIONS.sign_sepolicy_path is None:
logger.info("No sign_sepolicy_path specified, %s was not signed", sepolicy)
return False
java_library_path = os.path.join(
@@ -2404,7 +2405,7 @@ def SignSePolicy(sepolicy, key, password):
cmd.extend([key + OPTIONS.public_key_suffix,
key + OPTIONS.private_key_suffix,
sepolicy])
sepolicy, os.path.dirname(sepolicy)])
proc = Run(cmd, stdin=subprocess.PIPE)
if password is not None: