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

buildrepo: fix purging of old packages

parent 41088f45
No related merge requests found
......@@ -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)
......
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