diff options
author | Erich Eckner <git@eckner.net> | 2020-06-04 12:11:26 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-04 12:11:26 +0200 |
commit | aec9d3228289b6072cb3a9d2291bbfaa587d6992 (patch) | |
tree | 4d24420859367eb12715623e01f99ed3753a3b45 /pin-dependencies.PKGBUILDpatch | |
parent | 15961000ec8c159a1dd7d5f96c2267040c87822c (diff) | |
download | archlinuxewe-aec9d3228289b6072cb3a9d2291bbfaa587d6992.tar.xz |
pin-dependencies.PKGBUILDpatch: use bash array (again)
Diffstat (limited to 'pin-dependencies.PKGBUILDpatch')
-rw-r--r-- | pin-dependencies.PKGBUILDpatch | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/pin-dependencies.PKGBUILDpatch b/pin-dependencies.PKGBUILDpatch index 4d5540699..6d5d5cb65 100644 --- a/pin-dependencies.PKGBUILDpatch +++ b/pin-dependencies.PKGBUILDpatch @@ -45,24 +45,8 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then | sed 's/[<>]\?=.*$//' \ | sort -u ) <( - { - eval 'printf '"'"'%s\n'"'"' "${depends[@]}" "${depends_'"${CARCH}"'[@]}"' \ - | sed 's/=.*$//' \ - | sort -u - sed -n ' - /^\s*# _pinned_dependencies$/,/^\s*# _pinned_dependencies\.end$/ p - ' "${OLDPWD}/PKGBUILD" \ - | sed ' - /^\s*#/d - s/^\s\+// - s/\s\+$// - s/^\(["'"'"']\)\(\S\+\)\1$/\2/ - s/[<>]\?=.*$// - ' \ - | sort -u - } \ - | sort \ - | uniq -d + eval 'printf '"'"'%s\n'"'"' "${_pinned_dependencies[@]}" "${_pinned_dependencies_'"${CARCH}"'[@]}"' \ + | sort -u ) ); then printf 'There are discrepancies between the _pinned_dependencies and the linked libraries in %s'"'"'s %s:\n' \ |