Skip packages using mingw_arch in PKGBUILD
This commit is contained in:
@@ -21,6 +21,21 @@ pacman --noconfirm -Fy
|
||||
# Detect
|
||||
list_packages || failure 'Could not detect changed files'
|
||||
message 'Processing changes'
|
||||
|
||||
declare -a skipped_packages=()
|
||||
for package in "${packages[@]}"; do
|
||||
cd "${package}"
|
||||
. PKGBUILD
|
||||
if [[ ! " ${mingw_arch[*]} " =~ " ${MSYSTEM,,} " ]]; then
|
||||
skipped_packages+=("${package}")
|
||||
fi
|
||||
cd - > /dev/null
|
||||
done
|
||||
|
||||
for package in "${skipped_packages}"; do
|
||||
packages=(${packages[@]/"${package}"})
|
||||
done
|
||||
|
||||
test -z "${packages}" && success 'No changes in package recipes'
|
||||
|
||||
# Build
|
||||
|
||||
Reference in New Issue
Block a user