: nply/foundationpkgs

commit ba91a7c926b43245c58de6b9c7995a3007e57269
parent ded8d0a188bc70b91946045a722a4638629a16a0
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 20:26:45 +0530

Plan only applicable OS recipe buckets
1 file changed, 9 insertions(+), 1 deletion(-)
M
scripts/fpkgs-ci.sh
|
10
+++++++++-
diff --git a/scripts/fpkgs-ci.sh b/scripts/fpkgs-ci.sh
@@ -88,7 +88,15 @@ checkout_rev() {
 
 list_apkbuilds() {
 	root=$1
-	(cd "$root" && find . -path './.git' -prune -o -name APKBUILD -type f -print | sed 's#^./##' | sort)
+	os=$(canonical_os)
+	(
+		cd "$root"
+		for bucket in "$os" Unix noarch any; do
+			[ "$os" = "Windows" ] && [ "$bucket" = "Unix" ] && continue
+			[ -d "$bucket" ] || continue
+			find "$bucket" -name APKBUILD -type f -print
+		done | sort
+	)
 }
 
 pkg_field() {