summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-02-07 16:02:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-02-07 16:03:53 +0000
commit5f453f1cdec8bc2c4174878fdd818b5e9ad13505 (patch)
tree4730c60b1f906db47f42448e7233c2aa768fbfed /abuild.in
parente0217ee520949f51aef0f220d33d44bb3c9aa82c (diff)
downloadabuild-5f453f1cdec8bc2c4174878fdd818b5e9ad13505.tar.gz
abuild-5f453f1cdec8bc2c4174878fdd818b5e9ad13505.tar.bz2
abuild-5f453f1cdec8bc2c4174878fdd818b5e9ad13505.tar.xz
abuild-5f453f1cdec8bc2c4174878fdd818b5e9ad13505.zip
abuild: use REPODEST as abuildrepo if specified
This has the nice effect that we get the index automatically built for our REPODEST. Discussion here: http://lists.alpinelinux.org/alpine-devel/0249.html
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index a7a993d..93a7db1 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1127,6 +1127,7 @@ clean_abuildrepo() {
}
mklinks_abuildrepo() {
+ [ -n "$REPODEST" ] && return 0
local apk
mkdir -p "$abuildrepo"/$CARCH
cd "$abuildrepo" || return 1
@@ -1804,7 +1805,6 @@ pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
pkgrel=0
repo=${startdir%/*}
repo=${repo##*/}
-abuildrepo="$abuildrepo_base"/$repo
SRCDEST=${SRCDEST:-$startdir}
PKGDEST=${PKGDEST:-$startdir}
@@ -1817,6 +1817,9 @@ if [ -n "$REPODEST" ]; then
PKGDEST="$REPODEST/$repo/$CARCH"
# for recursive action
export REPODEST
+ abuildrepo="$REPODEST"/$repo
+else
+ abuildrepo="$abuildrepo_base"/$repo
fi
# if we want build debug package