Revert "common/xbps: make unset_package_funcs and run_pkg_hooks nonfatal"

This reverts commit f3d4dc20d7.
This commit is contained in:
Alessio Sergi 2018-06-05 16:17:23 +02:00
parent 2c0eba2775
commit d9f67bcb36

View file

@ -255,7 +255,7 @@ run_pkg_hooks() {
unset_package_funcs() { unset_package_funcs() {
local f local f
for f in $(typeset -F|grep -E '_package$' || :); do for f in $(typeset -F|grep -E '_package$'); do
eval unset -f $f eval unset -f $f
done done
} }
@ -263,7 +263,7 @@ unset_package_funcs() {
get_subpkgs() { get_subpkgs() {
local args list local args list
args="$(typeset -F|grep -E '_package$' || :)" args="$(typeset -F|grep -E '_package$')"
set -- ${args} set -- ${args}
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
list+=" ${3%_package}"; shift 3 list+=" ${3%_package}"; shift 3