improve audit
This commit is contained in:
@@ -50,8 +50,8 @@ def audit():
|
|||||||
for key in online_dict:
|
for key in online_dict:
|
||||||
if key in transformed_package_dict:
|
if key in transformed_package_dict:
|
||||||
if Version(online_dict[key]) > Version(transformed_package_dict[key]):
|
if Version(online_dict[key]) > Version(transformed_package_dict[key]):
|
||||||
print("ajout de " + key + " à la liste des paquets à mettre à jour")
|
print(f"{key} doit etre mis a jour de la version {transformed_package_dict[key]} vers la version {online_dict[key]}")
|
||||||
app_to_update_list.append({"package": key, "version": online_dict[key]})
|
app_to_update_list.append({"new_package": key, "new_version": online_dict[key], "old_version": transformed_package_dict[key]})
|
||||||
|
|
||||||
with open(app_to_update_json_path, "w") as json_file:
|
with open(app_to_update_json_path, "w") as json_file:
|
||||||
json.dump(app_to_update_list, json_file)
|
json.dump(app_to_update_list, json_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user