Skip to content

Commit 6d54d6f

Browse files
author
Juan RP
committed
Use xbps-src show-avail to check if pkg can be built for the given arch.
1 parent bc2a8c2 commit 6d54d6f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

configure

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ rm -rf tobuild built
112112
mkdir -p tobuild built
113113
for p in `cat pkgs.txt`; do
114114
if [ -f "$SRCPKGS/$p/template" ]; then
115-
touch tobuild/$p
115+
$XSC show-avail $p 2>/dev/null
116+
if [ $? -eq 0 ]; then
117+
touch tobuild/$p
118+
fi
116119
fi
117120
done
118121

0 commit comments

Comments
 (0)