diff options
author | Erich Eckner <git@eckner.net> | 2025-01-13 21:21:22 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2025-01-13 21:21:22 +0100 |
commit | 3fc3a09796672ef12cf408dd92ca681feed628a7 (patch) | |
tree | cf143fe207871b6edc38b5d9e53d9f4d0e17d2e2 /checkPinnedDependencies | |
parent | 9d68ca8af114735772f972a0d641879f7b091962 (diff) | |
download | archlinuxewe-3fc3a09796672ef12cf408dd92ca681feed628a7.tar.xz |
checkPinnedDependencies: -o new
Diffstat (limited to 'checkPinnedDependencies')
-rwxr-xr-x | checkPinnedDependencies | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/checkPinnedDependencies b/checkPinnedDependencies index c0dbe1fbd..266c4f7a9 100755 --- a/checkPinnedDependencies +++ b/checkPinnedDependencies @@ -3,12 +3,16 @@ cd "$(dirname "$0")" machineReadable=false +only='*' provided=() while [ $# -gt 0 ]; do if [ "x$1" = 'x-m' ]; then machineReadable=true + elif [ "x$1" = 'x-o' ] && [ "${only}" = '*' ]; then + shift + only="$1" elif [ -f "$1" ]; then provided=("${provided[@]}" "$1") else @@ -44,7 +48,7 @@ for provid in "${provided[@]}"; do awk '{print $2 "=" $1}' <"${provid}" \ | sort -u ) <( - for pkgbuild in */PKGBUILD; do + for pkgbuild in ${only}/PKGBUILD; do sed -n ' /^\s*arch=(.*)/p /^\s*arch=([^)]*$/,/)/p |