mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-18 13:30:43 +00:00
buildrepo: do not error if there are no packages in repo
This commit is contained in:
parent
f9b62b89a6
commit
5cde86ff29
@ -39,12 +39,13 @@ all_exist() {
|
|||||||
build() {
|
build() {
|
||||||
local repo="$1" i needbuild
|
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
|
# first we try copy everything possible and find out which we need
|
||||||
# to rebuild. By doing this we might save us for rebuilding
|
# to rebuild. By doing this we might save us for rebuilding
|
||||||
# needed when running 'abuild -R'
|
# needed when running 'abuild -R'
|
||||||
for i in */APKBUILD; do
|
for i in */APKBUILD; do
|
||||||
|
[ -f "$i" ] || continue
|
||||||
export REPODEST="$repodir"
|
export REPODEST="$repodir"
|
||||||
cd "$aportsdir/$repo"/${i%/*} || return 1
|
cd "$aportsdir/$repo"/${i%/*} || return 1
|
||||||
if abuild -k -q up2date 2>/dev/null; then
|
if abuild -k -q up2date 2>/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user