fix: dependent handlers install loop
This commit is contained in:
parent
d594dcf443
commit
c38316a66b
1 changed files with 7 additions and 5 deletions
6
instalee
6
instalee
|
@ -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 |')"
|
||||
|
|
Loading…
Add table
Reference in a new issue