OSDN Git Service

Merge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86
[android-x86/system-extras.git] / verity / build_verity_metadata.py
index 51e629a..5e42c6d 100755 (executable)
@@ -5,6 +5,7 @@ import sys
 import struct
 import tempfile
 import commands
+import subprocess
 
 VERSION = 0
 MAGIC_NUMBER = 0xb001b001
@@ -34,7 +35,9 @@ def sign_verity_table(table, signer_path, key_path):
             table_file.flush()
             cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
             print cmd
-            run(cmd)
+            runcmd = cmd.split()
+            sp = subprocess.Popen(runcmd)
+            sp.wait()
             return signature_file.read()
 
 def build_verity_table(block_device, data_blocks, root_hash, salt):