Skip to content
Snippets Groups Projects
Commit 73918f52 authored by Natanael Copa's avatar Natanael Copa
Browse files

buildrepo: only consider rebuilding packages that has proper arch set

parent b1b09318
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,16 @@ all_exist() { ...@@ -47,6 +47,16 @@ all_exist() {
return 0 return 0
} }
is_in() {
local needle="$1"
shift
while [ $# -gt 0 ]; do
[ "$needle" = "$1" ] && return 0
shift
done
return 1
}
list_needbuild() { list_needbuild() {
local repo="$1" i= local repo="$1" i=
...@@ -63,8 +73,13 @@ list_needbuild() { ...@@ -63,8 +73,13 @@ list_needbuild() {
pkgver= pkgver=
pkgrel= pkgrel=
subpackages= subpackages=
arch=
. ./APKBUILD . ./APKBUILD
if ! is_in all $arch && ! is_in $CARCH $arch; then
continue
fi
pkgs= pkgs=
for subpkg in $pkgname $subpackages; do for subpkg in $pkgname $subpackages; do
pkgfile=${subpkg%:*}-$pkgver-r$pkgrel.apk pkgfile=${subpkg%:*}-$pkgver-r$pkgrel.apk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment