diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 08:43:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 08:43:28 +0000 |
commit | ac09f44927dabb9ba121bf26336f054a2191fa25 (patch) | |
tree | 4b62414c3fa1a5db58c69cf875c006700eccf4fe /abuild.in | |
parent | f7e5128b3e656f6273b19b74a504373e0d2d5d88 (diff) | |
download | abuild-ac09f44927dabb9ba121bf26336f054a2191fa25.tar.gz abuild-ac09f44927dabb9ba121bf26336f054a2191fa25.tar.bz2 abuild-ac09f44927dabb9ba121bf26336f054a2191fa25.tar.xz abuild-ac09f44927dabb9ba121bf26336f054a2191fa25.zip |
abuild: sign index with abuild-sign
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -239,7 +239,6 @@ cleanpkg() { "$apkcache"/$p.apk done # remove given packages from index - } # clean all packages except current @@ -474,7 +473,18 @@ apkcache() { # update the apkcache cache here msg "Updating the cached abuild repository index..." - apk index -o "$apkcache"/APKINDEX.tar.gz "$apkcache"/*.apk + ( + local sign=".SIGN.RSA.${SIGN_PUBLIC_KEY##*/}" + local oldindex= + cd "$apkcache" + if [ -f APKINDEX.tar.gz ]; then + oldindex="--index APKINDEX.tar.gz" + fi + apk index $oldindex --output APKINDEX.tar.gz.unsigned *.apk || exit 1 + msg "Signing the index..." + abuild-sign -q APKINDEX.tar.gz.unsigned || exit 1 + mv APKINDEX.tar.gz.unsigned APKINDEX.tar.gz + ) } # predefined splitfunc doc |