mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 15:33:28 +00:00
buildrepo: fix purging of old packages
This commit is contained in:
parent
41088f4591
commit
54ca2cb82a
@ -81,7 +81,7 @@ build() {
|
||||
if [ -n "$dopurge" ]; then
|
||||
local tmp=$(mktemp /tmp/$program-XXXXXX)
|
||||
local purgefiles
|
||||
cd "$repodir/$1" || return 1
|
||||
cd "$repodir/$repo/$CARCH" || return 1
|
||||
trap 'rm -f "$tmp"; exit 1' INT
|
||||
( listpackages "$1") >$tmp
|
||||
purge=$(ls *.apk 2>/dev/null | grep -v -w -f $tmp)
|
||||
|
Loading…
Reference in New Issue
Block a user