diff --git a/package_linter.py b/package_linter.py index 1067e68..00b3d8d 100755 --- a/package_linter.py +++ b/package_linter.py @@ -17,9 +17,9 @@ reader = codecs.getreader("utf-8") # Helper list # ############################################################################ -# Generated March 31st using: +# Generated May 21st using: # cat /path/to/yunohost/data/helpers.d/* | grep "^ynh_" | tr -d '(){ ' > helperlist -# for HELPER in $(cat helperlist); do REQUIRE=$(grep -whB1 "^$HELPER" /path/to/yunohost/data/helpers.d/* | grep Requires | grep -o -E "[0-9].[0-9].[0-9]"); echo "'$HELPER': '$REQUIRE'",; done +# for HELPER in $(cat helperlist); do REQUIRE=$(grep -whB5 "^$HELPER" /path/to/yunohost/data/helpers.d/* | grep "Requires .* or higher\." | grep -o -E "[0-9].[0-9].[0-9]"); echo "'$HELPER': '$REQUIRE'",; done official_helpers = { 'ynh_wait_dpkg_free': '3.3.1', @@ -33,7 +33,13 @@ official_helpers = { 'ynh_package_autopurge': '2.7.2', 'ynh_package_install_from_equivs': '2.2.4', 'ynh_install_app_dependencies': '2.6.4', + 'ynh_add_app_dependencies': '3.8.1', 'ynh_remove_app_dependencies': '2.6.4', + 'ynh_install_extra_app_dependencies': '3.8.1', + 'ynh_install_extra_repo': '3.8.1', + 'ynh_remove_extra_repo': '3.8.1', + 'ynh_add_repo': '3.8.1', + 'ynh_pin_repo': '3.8.1', 'ynh_backup': '2.4.0', 'ynh_restore': '2.6.4', 'ynh_restore_file': '2.6.4', @@ -46,6 +52,8 @@ official_helpers = { 'ynh_add_fail2ban_config': '3.5.0', 'ynh_remove_fail2ban_config': '3.5.0', 'ynh_handle_getopts_args': '3.2.2', + 'ynh_get_ram': '3.8.1', + 'ynh_require_ram': '3.8.1', 'ynh_die': '2.4.0', 'ynh_print_info': '3.2.0', 'ynh_no_log': '2.6.4', @@ -77,7 +85,7 @@ official_helpers = { 'ynh_mysql_setup_db': '2.6.4', 'ynh_mysql_remove_db': '2.6.4', 'ynh_find_port': '2.6.4', - 'ynh_port_available': '', + 'ynh_port_available': '3.8.0', 'ynh_validate_ip': '2.2.4', 'ynh_validate_ip4': '2.2.4', 'ynh_validate_ip6': '2.2.4', @@ -90,6 +98,9 @@ official_helpers = { 'ynh_cron_upgrade_node': '2.7.1', 'ynh_add_fpm_config': '2.7.2', 'ynh_remove_fpm_config': '2.7.2', + 'ynh_install_php': '3.8.1', + 'ynh_remove_php': '3.8.1', + 'ynh_get_scalable_phpfpm': '', 'ynh_psql_connect_as': '3.5.0', 'ynh_psql_execute_as_root': '3.5.0', 'ynh_psql_execute_file_as_root': '3.5.0', @@ -97,18 +108,15 @@ official_helpers = { 'ynh_psql_drop_db': '3.5.0', 'ynh_psql_dump_db': '3.5.0', 'ynh_psql_create_user': '3.5.0', - 'ynh_psql_user_exists': '', - 'ynh_psql_database_exists': '', + 'ynh_psql_user_exists': '3.5.0', + 'ynh_psql_database_exists': '3.5.0', 'ynh_psql_drop_user': '3.5.0', - 'ynh_psql_setup_db': '', - 'ynh_psql_remove_db': '', - 'ynh_psql_test_if_first_run': '', + 'ynh_psql_setup_db': '2.7.1', + 'ynh_psql_remove_db': '2.7.1', + 'ynh_psql_test_if_first_run': '2.7.1', 'ynh_app_setting_get': '2.2.4', 'ynh_app_setting_set': '2.2.4', 'ynh_app_setting_delete': '2.2.4', - 'ynh_add_skipped_uris': '3.6.0', - 'ynh_add_unprotected_uris': '3.6.0', - 'ynh_add_protected_uris': '3.6.0', 'ynh_app_setting': '', 'ynh_webpath_available': '2.6.4', 'ynh_webpath_register': '2.6.4', @@ -117,23 +125,24 @@ official_helpers = { 'ynh_permission_exists': '3.7.0', 'ynh_permission_url': '3.7.0', 'ynh_permission_update': '3.7.0', + 'ynh_permission_has_user': '3.7.1', 'ynh_string_random': '2.2.4', 'ynh_replace_string': '2.6.4', 'ynh_replace_special_string': '2.7.7', 'ynh_sanitize_dbid': '2.2.4', 'ynh_normalize_url_path': '2.6.4', - 'ynh_add_systemd_config': '2.7.2', + 'ynh_add_systemd_config': '2.7.1', 'ynh_remove_systemd_config': '2.7.2', - 'ynh_systemd_action': '', - 'ynh_clean_check_starting': '', + 'ynh_systemd_action': '3.5.0', + 'ynh_clean_check_starting': '3.5.0', 'ynh_user_exists': '2.2.4', 'ynh_user_get_info': '2.2.4', 'ynh_user_list': '2.4.0', 'ynh_system_user_exists': '2.2.4', - 'ynh_system_group_exists': '', + 'ynh_system_group_exists': '3.5.0', 'ynh_system_user_create': '2.6.4', 'ynh_system_user_delete': '2.6.4', - 'ynh_exit_properly': '', + 'ynh_exit_properly': '2.6.4', 'ynh_abort_if_errors': '2.6.4', 'ynh_setup_source': '2.6.4', 'ynh_local_curl': '2.6.4',