Remove pipe char when trying to re-run apt with dry-run ... Because apt becomes absolutely crazy and make every package installed conflict with weird stuff

This commit is contained in:
Alexandre Aubin 2020-09-14 17:06:40 +02:00
parent 56644a5ffe
commit 8d4f36e131

View file

@ -198,7 +198,7 @@ ynh_package_install_from_equivs () {
# (the following is ran inside { } to not start a subshell otherwise ynh_die wouldnt exit the original process)
# Get the list of dependencies from the deb
local dependencies="$(dpkg --info "$TMPDIR/${pkgname}_${pkgversion}_all.deb" | grep Depends | \
sed 's/^ Depends: //' | sed 's/,//g')"
sed 's/^ Depends: //' | sed 's/,//g' | tr -d '|')"
# Fake an install of those dependencies to see the errors
# The sed command here is, Print only from '--fix-broken' to the end.
ynh_package_install $dependencies --dry-run | sed --quiet '/--fix-broken/,$p' >&2