mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tools - Cleanup all old keys in release/optionals (#8523)
This commit is contained in:
parent
5a4451a680
commit
495a9b6fb9
@ -1134,9 +1134,10 @@ See the make.cfg file for additional build options.
|
|||||||
if ret == 0:
|
if ret == 0:
|
||||||
print_green("Created: {}".format(os.path.join(private_key_path, key_name + ".biprivatekey")))
|
print_green("Created: {}".format(os.path.join(private_key_path, key_name + ".biprivatekey")))
|
||||||
print("Removing any old signature keys...")
|
print("Removing any old signature keys...")
|
||||||
purge(os.path.join(module_root, release_dir, project, "addons"), "^.*\.bisign$","*.bisign")
|
for root, _dirs, files in os.walk(os.path.join(module_root, release_dir)):
|
||||||
purge(os.path.join(module_root, release_dir, project, "optionals"), "^.*\.bisign$","*.bisign")
|
for file in files:
|
||||||
purge(os.path.join(module_root, release_dir, project, "keys"), "^.*\.bikey$","*.bikey")
|
if file.endswith(".bisign") or file.endswith(".bikey"):
|
||||||
|
os.remove(os.path.join(root, file))
|
||||||
else:
|
else:
|
||||||
print_error("Failed to create key!")
|
print_error("Failed to create key!")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user