diff --git a/buildrepo.in b/buildrepo.in index c211789..d719c34 100755 --- a/buildrepo.in +++ b/buildrepo.in @@ -22,9 +22,9 @@ usage() { listpackages() { - cd "$aportsdir/$1" for i in */APKBUILD; do - APKBUILD=$i abuild listpkg + cd "$aportsdir"/$1/${i%/*} + abuild listpkg done }