summaryrefslogtreecommitdiff
path: root/checkPinnedDependencies
diff options
context:
space:
mode:
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