buildrepo: fix purging of old packages

This commit is contained in:
Natanael Copa 2011-04-07 14:34:51 +00:00
parent 41088f4591
commit 54ca2cb82a
1 changed files with 1 additions and 1 deletions

View File

@ -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)