diff --git a/data/helpers.d/package b/data/helpers.d/package index f28691579..f6c9c07db 100644 --- a/data/helpers.d/package +++ b/data/helpers.d/package @@ -124,6 +124,9 @@ ynh_install_app_dependencies () { manifest_path="../settings/manifest.json" # Into the restore script, the manifest is not at the same place fi version=$(grep '\"version\": ' "$manifest_path" | cut -d '"' -f 4) # Retrieve the version number in the manifest file. + if [ " ${#version}" -eq 0 ]; then + version="1.0" + if dep_app=${app//_/-} # Replace all '_' by '-' cat > /tmp/${dep_app}-ynh-deps.control << EOF # Make a control file for equivs-build