Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-05-12 23:08:22 +1000
committerAllan McRae <allan@archlinux.org>2015-05-16 14:10:42 +1000
commitd38c098787ebbedb0f55742dd547a20a7362b0cb (patch)
treed9db959cf289220b8d68324969a5ffe7d4595727 /scripts/makepkg.sh.in
parent83b734a103016f08e63e03e1e803c327584e3721 (diff)
libmakepkg: extract in_array
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index a6e37eef..a00e8a42 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -889,20 +889,6 @@ get_pkg_arch() {
fi
}
-##
-# usage : in_array( $needle, $haystack )
-# return : 0 - found
-# 1 - not found
-##
-in_array() {
- local needle=$1; shift
- local item
- for item in "$@"; do
- [[ $item = "$needle" ]] && return 0 # Found
- done
- return 1 # Not Found
-}
-
source_has_signatures() {
local file all_sources