fix: dependent handlers install loop

This commit is contained in:
xeruf 2022-11-22 01:30:48 +01:00
parent d594dcf443
commit c38316a66b
1 changed files with 7 additions and 5 deletions

View File

@ -35,13 +35,15 @@ installpkg() {
for handler in $pkghandlers
do installpkg --quiet "$handler" &&
echo "$handler" >>"$pkghandlers" &&
installpkg "$1" &&
return $?
package_available_entries=$(getentries "$1") &&
break
done
if test -z "$package_available_entries"; then
test "$quiet" ||
echo "No handler available for package '$1'" >&2
return 2
fi
fi
local pkg_entry
for pkg_entry in $package_available_entries
do highlight "Installing $(echo ${pkg_entry#$dir_packages/} | sed 's|\(.*\)/|\1 via |')"