buildrepo: do not error if there are no packages in repo

This commit is contained in:
Natanael Copa 2010-11-02 09:03:20 +00:00
parent f9b62b89a6
commit 5cde86ff29

View File

@ -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