Skip to content

Commit

Permalink
helpers2.1: add searchandreplace for apt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Jun 19, 2024
1 parent 01f27fb commit f621260
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/helpers2.1/convert_to_helpers_2.1.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ def cleanup():
(r"--specific_user\S*", ""),
(r"--logfile=?", ""),
(r" ?--non-?append", ""),
# Apt
(r"ynh_package_is_installed (--package=)?", "_ynh_apt_package_is_installed"),
(r"ynh_package_version (--package=)?", "_ynh_apt_package_version"),
(r"ynh_package_install", "_ynh_apt_install"),
(r"ynh_install_extra_app_dependencies", "ynh_install_extra_apt_dependencies"),
(r"ynh_install_app_dependencies", "ynh_install_apt_dependencies"),
(r"ynh_remove_app_dependencies", "ynh_remove_apt_dependencies"),
(r"ynh_package_autopurge", "_ynh_apt autoremove --purge"),
# Exec as / sudo
(r'ynh_exec_as "?\$app"?( env)?', "ynh_exec_as_app"),
(r'sudo -u "?\$app"?( env)?', "ynh_exec_as_app"),
Expand Down

0 comments on commit f621260

Please sign in to comment.