summaryrefslogtreecommitdiffstats
path: root/buildrepo.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-11-02 09:03:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-02 09:03:20 +0000
commit5cde86ff2925c102d1655550c156f1619deca6e8 (patch)
tree45817dc4861522d1c5ff579b6c91b625bbcb62b6 /buildrepo.in
parentf9b62b89a60793a12092ae5f3c3cef231c6aa03e (diff)
downloadabuild-5cde86ff2925c102d1655550c156f1619deca6e8.tar.bz2
abuild-5cde86ff2925c102d1655550c156f1619deca6e8.tar.xz
buildrepo: do not error if there are no packages in repo
Diffstat (limited to 'buildrepo.in')
-rwxr-xr-xbuildrepo.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildrepo.in b/buildrepo.in
index c211789..961d245 100755
--- a/buildrepo.in
+++ b/buildrepo.in
@@ -39,12 +39,13 @@ all_exist() {
build() {
local repo="$1" i needbuild
- cd "$aportsdir/$repo" || return 1
+ cd "$aportsdir/$repo" || return 0
# first we try copy everything possible and find out which we need
# to rebuild. By doing this we might save us for rebuilding
# needed when running 'abuild -R'
for i in */APKBUILD; do
+ [ -f "$i" ] || continue
export REPODEST="$repodir"
cd "$aportsdir/$repo"/${i%/*} || return 1
if abuild -k -q up2date 2>/dev/null; then