Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/executable.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-04-16 13:12:39 -0400
committerAllan McRae <allan@archlinux.org>2019-05-08 12:45:34 +1000
commit614ef781ebf8ef7ae116c26d419bc9002c162599 (patch)
tree6a5ceed5eef7d90d16e67980d24dddc7e850681d /scripts/libmakepkg/executable.sh.in
parentb93dfa935f900d884f14d5be8949dc0ae85f1692 (diff)
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.sh.in')
-rw-r--r--scripts/libmakepkg/executable.sh.in5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/libmakepkg/executable.sh.in b/scripts/libmakepkg/executable.sh.in
index 92031d43..cac016fb 100644
--- a/scripts/libmakepkg/executable.sh.in
+++ b/scripts/libmakepkg/executable.sh.in
@@ -21,11 +21,6 @@
[[ -n "$LIBMAKEPKG_EXECUTABLE_SH" ]] && return
LIBMAKEPKG_EXECUTABLE_SH=1
-LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
-
-source "$LIBRARY/util/message.sh"
-
-
declare -a executable_functions
for lib in "$LIBRARY/executable/"*.sh; do