Unload potential private keys before building

This commit is contained in:
Orsiris de Jong 2023-03-28 14:45:32 +02:00
parent 1e7f2d9991
commit df8862c151

View file

@ -90,6 +90,12 @@ def check_private_build(audience):
print("ERROR: Cannot find secret keys") print("ERROR: Cannot find secret keys")
sys.exit() sys.exit()
# Drop private files if exist in memory
try:
del PRIVATE._private_secret_keys
except Exception:
pass
dist_conf_file_path = get_conf_dist_file(audience) dist_conf_file_path = get_conf_dist_file(audience)
if dist_conf_file_path and "_private" in dist_conf_file_path: if dist_conf_file_path and "_private" in dist_conf_file_path:
print("INFO: Building with a private conf.dist file") print("INFO: Building with a private conf.dist file")