summaryrefslogtreecommitdiff
path: root/perlFunktionen
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-18 09:26:22 +0200
committerErich Eckner <git@eckner.net>2021-05-18 09:26:22 +0200
commitc5b427ba90669c9c1e8d1a8d92590f44e0a2ad3d (patch)
tree10bcc863ad43e1790c303c1c9809718250cfa3c5 /perlFunktionen
parent4a377c84cc8da8b7f903e35cc21559b5456580ba (diff)
downloadarchlinuxewe-c5b427ba90669c9c1e8d1a8d92590f44e0a2ad3d.tar.xz
perlFunktionen: _pinned_dependencies beachten
Diffstat (limited to 'perlFunktionen')
-rwxr-xr-xperlFunktionen12
1 files changed, 11 insertions, 1 deletions
diff --git a/perlFunktionen b/perlFunktionen
index be88b6bf1..f373f5e66 100755
--- a/perlFunktionen
+++ b/perlFunktionen
@@ -49,7 +49,15 @@ ladePkgbuild() {
makepkg -f --verifysource
- . PKGBUILD
+ . <(
+ sed '
+ /^\s*_pinned_dependencies\S*=(.*)/ d
+ /^\s*_pinned_dependencies\S*=(/,/)/ d
+ ' PKGBUILD
+ )
+ if grep -qF _pinned_dependencies PKGBUILD; then
+ depends+=('"${_pinned_dependencies[@]}"')
+ fi
}
versteheMetaYml() {
@@ -89,6 +97,8 @@ versteheMetaYml() {
sed "s@\(\sperl:\s\+\)'\?\([[:digit:]]\+\)\.\([[:digit:]]\{3\}\)\([[:digit:]]\+\)'\?\(\s\|\$\)@\1\2.\3.\4\5@" | \
sed "s@\(\sperl:\s\+\)'\?\([[:digit:]]\+\)[._]0*\([1-9][[:digit:]]*\)[._]0*\([1-9][[:digit:]]*\)'\?\(\s\|\$\)@\1\2.\3.\4\5@" | \
sed "s@\(\sperl:\s\+\)'\?\([[:digit:]]\+\)[._]0*\([1-9][[:digit:]]*\)[._]0\+'\?\(\s\|\$\)@\1\2.\3.0\4@"
+ ! grep -qwF _pinned_dependencies PKGBUILD \
+ || printf 'depends:"${_pinned_dependencies[@]}"\n'
)"
echo -n "... fertig, "