Commit 5cde86ff authored by Natanael Copa's avatar Natanael Copa
Browse files

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

parent f9b62b89
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment