index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | morganamilo <morganamilo@gmail.com> | 2019-01-31 02:04:56 +0000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-31 15:03:25 +1000 |
commit | 14755df06f4727f261a8174502754acd7243ab75 (patch) | |
tree | ce86c7823c26959c55ccb1f826e8ce3b1bb58b4e /scripts/libmakepkg/util/pkgbuild.sh.in | |
parent | 75aae126c423dcc9b215aef57daff9e7bd8f5f6b (diff) |
-rw-r--r-- | scripts/libmakepkg/util/pkgbuild.sh.in | 9 |
diff --git a/scripts/libmakepkg/util/pkgbuild.sh.in b/scripts/libmakepkg/util/pkgbuild.sh.in index 0dc239d1..298275a8 100644 --- a/scripts/libmakepkg/util/pkgbuild.sh.in +++ b/scripts/libmakepkg/util/pkgbuild.sh.in @@ -100,6 +100,15 @@ extract_function_variable() { return $r } +exists_function_variable() { + # $1: function name + # $2: variable name + + local funcname=$1 attr=$2 out + extract_function_variable "$funcname" "$attr" 0 out || + extract_function_variable "$funcname" "$attr" 1 out +} + get_pkgbuild_attribute() { # $1: package name # $2: attribute name |