diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-26 15:33:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-27 14:31:53 +0000 |
commit | 07600317c87491a503f020f94a6486b113e23e3a (patch) | |
tree | c587df10943a9fecfbc023e6ac6f78b14b511239 /main/aports-build/aports-build | |
parent | 1cb3361997159ca416eeaf20330de72140c707c9 (diff) | |
download | aports-07600317c87491a503f020f94a6486b113e23e3a.tar.bz2 aports-07600317c87491a503f020f94a6486b113e23e3a.tar.xz |
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.
Diffstat (limited to 'main/aports-build/aports-build')
-rw-r--r-- | main/aports-build/aports-build | 3 |
1 files changed, 2 insertions, 1 deletions
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? |