1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Fix invalid escape sequences again :grim:

This commit is contained in:
Alexandre Aubin 2024-06-23 15:04:08 +02:00
parent 3c33344bf5
commit a777eb2570

View file

@ -92,7 +92,7 @@ def cleanup():
(r"ynh_compare_current_package_version.*lt.*version\s?=?\"?([0-9\.]+~ynh[0-9])\"?", "ynh_app_upgrading_from_version_before \\1"),
(r"ynh_compare_current_package_version.*le.*version\s?=?\"?([0-9\.]+~ynh[0-9])\"?", "ynh_app_upgrading_from_version_before_or_equal_to \\1"),
(r"upgrade_type=\S*", ""),
('[\s+"?\$upgrade_type"?\s+==\s+"?UPGRADE_APP"? ]', "ynh_app_upstream_version_changed"),
(r'\[\s+"?\$upgrade_type"?\s+==\s+"?UPGRADE_APP"? \]', "ynh_app_upstream_version_changed"),
# Backup/store
(r"ynh_restore\s*$", "ynh_restore_everything"),
# -> Specific trick to remove the --not_mandatory here, but replace it with || true for the other occurences