Commit 074f4353 authored by Natanael Copa's avatar Natanael Copa

buildrepo: faster purging of old packages

parent 73918f52
......@@ -33,9 +33,22 @@ usage() {
listpackages() {
cd "$aportsdir/$1"
local repo="$1" i= pkgname= pkgver= pkgrel= subpackage= arch= subpkg=
cd "$aportsdir/$repo"
for i in */APKBUILD; do
APKBUILD=$i abuild listpkg
cd "$aportsdir/$repo"/${i%/*} || return 1
pkgname=
pkgver=
pkgrel=
subpackages=
arch=
. ./APKBUILD
if ! is_in all $arch && ! is_in "$CARCH" $arch; then
continue
fi
for subpkg in $pkgname $subpackages; do
echo ${subpkg%:*}-$pkgver-r$pkgrel.apk
done
done
}
......
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