common/xbps: make unset_package_funcs and run_pkg_hooks nonfatal
This commit is contained in:
parent
ae210f3103
commit
f3d4dc20d7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue