diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-30 05:39:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 03:43:22 +0200 |
commit | 6c85141edadde36974cc589f750e1f194d7e175d (patch) | |
tree | 604e109c2f27d94a61d88bb9d4f00e403a3ffa53 /bin | |
parent | 5276e0fc8adc5ff96b91b8c31e19906ae0ba9bd2 (diff) |
we only need the signed mar files
Change-Id: Id40651ab3faa5eea68ba5437b2b3fa409b1aed93
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update/create_full_mar.py | 5 | ||||
-rwxr-xr-x | bin/update/create_full_mar_for_languages.py | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/update/create_full_mar.py b/bin/update/create_full_mar.py index ae103357c6d3..f29a40d1d931 100755 --- a/bin/update/create_full_mar.py +++ b/bin/update/create_full_mar.py @@ -40,7 +40,10 @@ def main(): mar_file = make_mar_name(target_dir, filename_prefix) subprocess.call([os.path.join(current_dir_path, 'make_full_update.sh'), mar_file, uncompress_dir]) - subprocess.call([mar_executable, '-C', target_dir, '-d', certificate_path, '-n', certificate_name, '-s', mar_file, make_mar_name(target_dir, filename_prefix + '_signed')]) + signed_mar_file = make_mar_name(target_dir, filename_prefix + '_signed') + subprocess.call([mar_executable, '-C', target_dir, '-d', certificate_path, '-n', certificate_name, '-s', mar_file, signed_mar_file]) + + os.rename(signed_mar_file, mar_file) file_info = { 'complete' : get_file_info(mar_file) } diff --git a/bin/update/create_full_mar_for_languages.py b/bin/update/create_full_mar_for_languages.py index 539c3e7ebbc2..23f3a3e6608b 100755 --- a/bin/update/create_full_mar_for_languages.py +++ b/bin/update/create_full_mar_for_languages.py @@ -50,7 +50,10 @@ def main(): mar_file_name = make_complete_mar_name(target_dir, filename_prefix, language) subprocess.call([os.path.join(current_dir_path, 'make_full_update.sh'), mar_file_name, directory]) - subprocess.call([mar_executable, '-C', target_dir, '-d', certificate_path, '-n', certificate_name, '-s', mar_file_name, make_complete_mar_name(target_dir, filename_prefix + '_signed', language)]) + + signed_mar_file = make_complete_mar_name(target_dir, filename_prefix + '_signed', language) + subprocess.call([mar_executable, '-C', target_dir, '-d', certificate_path, '-n', certificate_name, '-s', mar_file_name, signed_mar_file]) + os.rename(signed_mar_file, mar_file_name) lang_infos.append(create_lang_infos(mar_file_name, language)) |