diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-22 09:53:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-09 11:07:56 +0000 |
commit | 73918f526c1ccfda7b0a078c16b912a94658a2b2 (patch) | |
tree | 0e7824513a96581663fe04133391c4fa5e192538 | |
parent | b1b093180f2795c5802f12ee36b6f619e725b0cd (diff) | |
download | abuild-73918f526c1ccfda7b0a078c16b912a94658a2b2.tar.gz abuild-73918f526c1ccfda7b0a078c16b912a94658a2b2.tar.bz2 abuild-73918f526c1ccfda7b0a078c16b912a94658a2b2.tar.xz abuild-73918f526c1ccfda7b0a078c16b912a94658a2b2.zip |
buildrepo: only consider rebuilding packages that has proper arch set
-rwxr-xr-x | buildrepo.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/buildrepo.in b/buildrepo.in index 1f218cc..da4e91b 100755 --- a/buildrepo.in +++ b/buildrepo.in @@ -47,6 +47,16 @@ all_exist() { return 0 } +is_in() { + local needle="$1" + shift + while [ $# -gt 0 ]; do + [ "$needle" = "$1" ] && return 0 + shift + done + return 1 +} + list_needbuild() { local repo="$1" i= @@ -63,8 +73,13 @@ list_needbuild() { pkgver= pkgrel= subpackages= + arch= . ./APKBUILD + if ! is_in all $arch && ! is_in $CARCH $arch; then + continue + fi + pkgs= for subpkg in $pkgname $subpackages; do pkgfile=${subpkg%:*}-$pkgver-r$pkgrel.apk |