summaryrefslogtreecommitdiff
path: root/checkPinnedDependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2025-01-13 21:21:22 +0100
committerErich Eckner <git@eckner.net>2025-01-13 21:21:22 +0100
commit3fc3a09796672ef12cf408dd92ca681feed628a7 (patch)
treecf143fe207871b6edc38b5d9e53d9f4d0e17d2e2 /checkPinnedDependencies
parent9d68ca8af114735772f972a0d641879f7b091962 (diff)
downloadarchlinuxewe-3fc3a09796672ef12cf408dd92ca681feed628a7.tar.xz
checkPinnedDependencies: -o new
Diffstat (limited to 'checkPinnedDependencies')
-rwxr-xr-xcheckPinnedDependencies6
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