diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-07 14:34:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-07 14:34:51 +0000 |
commit | 54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7 (patch) | |
tree | 89975ec68d8b52f2e7f25c47058cd984356cb694 /buildrepo.in | |
parent | 41088f4591de32be7cc1f51a50d6b266ff3bbb91 (diff) | |
download | abuild-54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7.tar.gz abuild-54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7.tar.bz2 abuild-54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7.tar.xz abuild-54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7.zip |
buildrepo: fix purging of old packages
Diffstat (limited to 'buildrepo.in')
-rwxr-xr-x | buildrepo.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildrepo.in b/buildrepo.in index 5a80b0b..405e500 100755 --- a/buildrepo.in +++ b/buildrepo.in @@ -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) |