abuild: use APKINDEX.tar.gz rather than APK_INDEX.gz

This commit is contained in:
Natanael Copa 2009-07-23 09:46:36 +00:00
parent c2a0126ea2
commit 53b17143d2

View File

@ -465,6 +465,7 @@ apkcache() {
if ! apk_up2date || [ -n "$force" ]; then if ! apk_up2date || [ -n "$force" ]; then
sanitycheck && builddeps && clean && fetch && unpack && rootpkg || return 1 sanitycheck && builddeps && clean && fetch && unpack && rootpkg || return 1
fi fi
local apk local apk
mkdir -p "$apkcache" || return 1 mkdir -p "$apkcache" || return 1
cd "$apkcache" cd "$apkcache"
@ -610,7 +611,7 @@ cache_up2date() {
local i apk local i apk
for i in $pkgname $subpackages; do for i in $pkgname $subpackages; do
apk="${i%:*}-$pkgver-r$pkgrel.apk" apk="${i%:*}-$pkgver-r$pkgrel.apk"
[ "$apkcache"/APK_INDEX.gz -nt "$apkcache"/$apk ] || return 1 [ "$apkcache"/APKINDEX.tar.gz -nt "$apkcache"/$apk ] || return 1
done done
return 0 return 0
} }