maj des inclusions
This commit is contained in:
parent
c7a2baa796
commit
b572a3ac85
File diff suppressed because it is too large
Load Diff
|
@ -64,12 +64,16 @@ __ULIB_FORCE_RELOAD=
|
|||
function urequire() {
|
||||
local __u_module __u_ulibdir __u_found
|
||||
[ -n "$*" ] || set DEFAULTS
|
||||
|
||||
local __ulib_force_reload="$__ULIB_FORCE_RELOAD"
|
||||
local __ULIB_FORCE_RELOAD
|
||||
|
||||
for __u_module in "$@"; do
|
||||
__u_found=
|
||||
for __u_ulibdir in "${ULIBDIRS[@]}"; do
|
||||
if [ -f "$__u_ulibdir/$__u_module" ]; then
|
||||
__u_found=1
|
||||
if [ -n "$__ULIB_FORCE_RELOAD" ] || ! uprovided "$__u_module"; then
|
||||
if [ -n "$__ulib_force_reload" ] || ! uprovided "$__u_module"; then
|
||||
uprovide "$__u_module"
|
||||
source "$__u_ulibdir/$__u_module" || die
|
||||
fi
|
||||
|
@ -79,7 +83,7 @@ function urequire() {
|
|||
if [ -z "$__u_found" -a "$__u_module" == DEFAULTS ]; then
|
||||
__u_found=1
|
||||
for __u_module in base pretty sysinfos compat; do
|
||||
if [ -n "$__ULIB_FORCE_RELOAD" ] || ! uprovided "$__u_module"; then
|
||||
if [ -n "$__ulib_force_reload" ] || ! uprovided "$__u_module"; then
|
||||
uprovide "$__u_module"
|
||||
source "$__u_ulibdir/$__u_module" || die
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue