From 751093eff2cbd0df422b69810787b4fcf3d33208 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Fri, 9 Aug 2019 14:31:53 -0400 Subject: use libmakepkg to find and use variables in makepkg.conf - drop homebrew function in makechrootpkg - use better mock to find invoking user's $HOME - make offload-build respect makepkg.conf to determine where to sync files, matching the behavior of makechrootpkg Signed-off-by: Eli Schwartz Signed-off-by: Levente Polyak --- offload-build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'offload-build') diff --git a/offload-build b/offload-build index 7a07b15..078796a 100755 --- a/offload-build +++ b/offload-build @@ -18,6 +18,8 @@ # along with this program. If not, see . # +source /usr/share/makepkg/util/config.sh + # global defaults suitable for use by Arch staff repo=extra @@ -105,4 +107,9 @@ mapfile -t files < <( makepkg --packagelist ') -(( ${#files[@]} )) && printf '%s\n' '' '-> copying files...' && scp "${files[@]/#/$server:}" . + +if (( ${#files[@]} )); then + printf '%s\n' '' '-> copying files...' + load_makepkg_config + scp "${files[@]/#/$server:}" "${PKGDEST:-${PWD}}/" +fi -- cgit v1.2.3-70-g09d2