From de3a0b4f694fc18a08bf78d9d8b9dfa9a6847312 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 9 Jun 2017 00:46:36 +0200 Subject: [PATCH] [fix] ynh_install_app_dependencies uses grep instead of python (#313) Proposition to discuss --- data/helpers.d/package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/package b/data/helpers.d/package index 66982cf25..a3e89f9d8 100644 --- a/data/helpers.d/package +++ b/data/helpers.d/package @@ -115,7 +115,7 @@ ynh_install_app_dependencies () { if [ ! -e "$manifest_path" ]; then manifest_path="../settings/manifest.json" # Into the restore script, the manifest is not at the same place fi - version=$(sudo python3 -c "import sys, json;print(json.load(open(\"$manifest_path\"))['version'])") # Retrieve the version number in the manifest file. + version=$(grep '\"version\": ' "$manifest_path" | cut -d '"' -f 4) # Retrieve the version number in the manifest file. dep_app=${app//_/-} # Replace all '_' by '-' if ynh_package_is_installed "${dep_app}-ynh-deps"; then