From 59896315ddd75a6236c006ddf6af44aafd80be12 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 23 Jun 2024 15:38:33 +0200 Subject: [PATCH] Make the script more idempotent --- tools/helpers2.1/convert_to_helpers_2.1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/helpers2.1/convert_to_helpers_2.1.py b/tools/helpers2.1/convert_to_helpers_2.1.py index 5dd4a461..8a3e51ee 100644 --- a/tools/helpers2.1/convert_to_helpers_2.1.py +++ b/tools/helpers2.1/convert_to_helpers_2.1.py @@ -56,7 +56,7 @@ def cleanup(): (r"\$\(ynh_get_debian_release\)", "$YNH_DEBIAN_VERSION"), (r"ynh_read_manifest --manifest\S*", "ynh_read_manifest"), (r"--manifest_key", "--key"), - (r"COMMON VARIABLES", "COMMON VARIABLES AND CUSTOM HELPERS"), + (r"COMMON VARIABLES\s*$", "COMMON VARIABLES AND CUSTOM HELPERS"), (r"ynh_string_random ([0-9])", "ynh_string_random --length=\\1"), (r"ynh_backup_if_checksum_is_different --file=?", "ynh_backup_if_checksum_is_different "), (r"ynh_store_file_checksum --file=?", "ynh_store_file_checksum "),