diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-04-16 19:12:39 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-05-08 04:45:34 +0200 |
commit | 614ef781ebf8ef7ae116c26d419bc9002c162599 (patch) | |
tree | 6a5ceed5eef7d90d16e67980d24dddc7e850681d /scripts/libmakepkg/executable/sudo.sh.in | |
parent | b93dfa935f900d884f14d5be8949dc0ae85f1692 (diff) | |
download | pacman-614ef781ebf8ef7ae116c26d419bc9002c162599.tar.gz pacman-614ef781ebf8ef7ae116c26d419bc9002c162599.tar.xz |
libmakepkg: fix missing or inaccurate interdependencies
When the executable checking was refactored into libmakepkg, it carried
with it, usage of $E_* error codes, which need to be declared from
error.sh but are only available when the parent program already sources
error.sh; additionally, message.sh was only loaded in a parent
library, but not where it was needed, and option.sh was often loaded
when it wasn't needed at all.
util.sh, meanwhile, has always depended on message.sh functions.
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/executable/sudo.sh.in')
-rw-r--r-- | scripts/libmakepkg/executable/sudo.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/executable/sudo.sh.in b/scripts/libmakepkg/executable/sudo.sh.in index 7ec18ec5..6cd007e1 100644 --- a/scripts/libmakepkg/executable/sudo.sh.in +++ b/scripts/libmakepkg/executable/sudo.sh.in @@ -23,7 +23,7 @@ LIBMAKEPKG_EXECUTABLE_SUDO_SH=1 LIBRARY=${LIBRARY:-'@libmakepkgdir@'} -source "$LIBRARY/util/option.sh" +source "$LIBRARY/util/message.sh" executable_functions+=('executable_sudo') |