diff --git a/scripts/install b/scripts/install index 437b66d..f6a1719 100644 --- a/scripts/install +++ b/scripts/install @@ -84,6 +84,13 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" +#================================================= +# PATCH VERSION 0.16.0 +#================================================= + +# Apply fix https://github.com/asciimoo/searx/pull/1831 on the current 0.16.0 release. +ynh_replace_string --match_string="werkzeug.contrib.fixers" --replace_string="werkzeug.middleware.proxy_fix" --target_file="$final_path/searx/webapp.py" + #================================================= # SPECIFIC SETUP #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fee6454..9d2062a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -90,6 +90,13 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" + + #================================================= + # PATCH VERSION 0.16.0 + #================================================= + + # Apply fix https://github.com/asciimoo/searx/pull/1831 on the current 0.16.0 release. + ynh_replace_string --match_string="werkzeug.contrib.fixers" --replace_string="werkzeug.middleware.proxy_fix" --target_file="$final_path/searx/webapp.py" fi #================================================= diff --git a/sources/extra_files/app/requirements-ynh.txt b/sources/extra_files/app/requirements-ynh.txt index 0174d36..1d6c2a3 100644 --- a/sources/extra_files/app/requirements-ynh.txt +++ b/sources/extra_files/app/requirements-ynh.txt @@ -1,11 +1,11 @@ # Have a look to https://github.com/asciimoo/searx/blob/master/requirements.txt for each upgrade of Searx certifi==2019.3.9 -babel==2.7.0 +#babel==2.7.0 flask-babel==1.0.0 flask==1.0.2 idna==2.8 jinja2==2.10.1 -lxml==4.3.3 +#lxml==4.3.3 pygments==2.1.3 pyopenssl==19.0.0 python-dateutil==2.8.0 @@ -17,4 +17,4 @@ markupsafe>=0.23 ndg-httpsclient>=0.4.2 pyasn1>=0.2.3 pyasn1-modules>=0.0.9 -cffi>=1.12.1 +#cffi>=1.12.1