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
|
for handler in $pkghandlers
|
||||||
do installpkg --quiet "$handler" &&
|
do installpkg --quiet "$handler" &&
|
||||||
echo "$handler" >>"$pkghandlers" &&
|
echo "$handler" >>"$pkghandlers" &&
|
||||||
installpkg "$1" &&
|
package_available_entries=$(getentries "$1") &&
|
||||||
return $?
|
break
|
||||||
done
|
done
|
||||||
|
if test -z "$package_available_entries"; then
|
||||||
test "$quiet" ||
|
test "$quiet" ||
|
||||||
echo "No handler available for package '$1'" >&2
|
echo "No handler available for package '$1'" >&2
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
local pkg_entry
|
local pkg_entry
|
||||||
for pkg_entry in $package_available_entries
|
for pkg_entry in $package_available_entries
|
||||||
do highlight "Installing $(echo ${pkg_entry#$dir_packages/} | sed 's|\(.*\)/|\1 via |')"
|
do highlight "Installing $(echo ${pkg_entry#$dir_packages/} | sed 's|\(.*\)/|\1 via |')"
|
||||||
|
|
Loading…
Add table
Reference in a new issue