summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-23 09:29:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-23 09:32:14 +0000
commitc2a0126ea248ea48fe8058ebc543bcbea2e3fbe3 (patch)
treeb375bc10baf3e95f5b4feb575622d262c6f030d2
parentac09f44927dabb9ba121bf26336f054a2191fa25 (diff)
downloadalpine-iso-c2a0126ea248ea48fe8058ebc543bcbea2e3fbe3.tar.bz2
alpine-iso-c2a0126ea248ea48fe8058ebc543bcbea2e3fbe3.tar.xz
abuild: remove broken links in abuild temp repo. sign the control.tar.gz
-rwxr-xr-xabuild.in16
1 files changed, 11 insertions, 5 deletions
diff --git a/abuild.in b/abuild.in
index 448428e..3878831 100755
--- a/abuild.in
+++ b/abuild.in
@@ -453,6 +453,7 @@ create_apks() {
cd "$dir"
tar -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
| gzip -9 > control.tar.gz
+ abuild-sign -q control.tar.gz || exit 1
# create the final apk
cat control.tar.gz data.tar.gz > "$PKGDEST"/$apk
@@ -466,17 +467,23 @@ apkcache() {
fi
local apk
mkdir -p "$apkcache" || return 1
- set --
+ cd "$apkcache"
+
+ # remove broken links
+ for apk in *.apk; do
+ if [ -L "$apk" ] && [ ! -f "$apk" ]; then
+ rm -f "$apk"
+ fi
+ done
+
+ # create links for this package
for apk in $(listpkg); do
ln -sf "$PKGDEST"/$apk "$apkcache"/$apk
done
- # update the apkcache cache here
msg "Updating the cached abuild repository index..."
- (
local sign=".SIGN.RSA.${SIGN_PUBLIC_KEY##*/}"
local oldindex=
- cd "$apkcache"
if [ -f APKINDEX.tar.gz ]; then
oldindex="--index APKINDEX.tar.gz"
fi
@@ -484,7 +491,6 @@ apkcache() {
msg "Signing the index..."
abuild-sign -q APKINDEX.tar.gz.unsigned || exit 1
mv APKINDEX.tar.gz.unsigned APKINDEX.tar.gz
- )
}
# predefined splitfunc doc