Skip to content
Snippets Groups Projects
Commit 074f4353 authored by Natanael Copa's avatar Natanael Copa
Browse files

buildrepo: faster purging of old packages

parent 73918f52
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,22 @@ usage() { ...@@ -33,9 +33,22 @@ usage() {
listpackages() { listpackages() {
cd "$aportsdir/$1" local repo="$1" i= pkgname= pkgver= pkgrel= subpackage= arch= subpkg=
cd "$aportsdir/$repo"
for i in */APKBUILD; do 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 done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment