From 07600317c87491a503f020f94a6486b113e23e3a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 26 Mar 2014 15:33:49 +0000 Subject: main/aports-build: add support for override buildrepo command This is so we can configure what buildrepo implementation should be used. We also remove the buildrepo_opts option as it becomes redundant. --- main/aports-build/aports-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/aports-build/aports-build') diff --git a/main/aports-build/aports-build b/main/aports-build/aports-build index 75cb24832d..7690753d63 100644 --- a/main/aports-build/aports-build +++ b/main/aports-build/aports-build @@ -39,6 +39,7 @@ isodir=$HOME/alpine-iso packages=${REPOSDIR:-$HOME/packages} repos=${REPOS:-"main testing"} +: ${buildrepo:="buildrepo -p"} : ${upload_host:="rsync.alpinelinux.org"} : ${upload_prefix:="$upload_host:alpine"} upload_pkg="$upload_prefix/$rel/" @@ -139,7 +140,7 @@ while true; do # cd $i && abuild -Rk )||break # done # ) - if ! buildrepo -p $buildrepo_opts $repos >"$logdir"/$hostname.log 2>&1 ; then + if ! $buildrepo $repos >"$logdir"/$hostname.log 2>&1 ; then local errlog=$hostname.$_current.log cp "$logdir"/$hostname.log "$logdir"/$errlog # todo: revert last commit? -- cgit v1.2.3