From efcf5e2adaa75a5781deede96d29e9a8610ad4f9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 23 Dec 2015 14:46:37 -0200 Subject: Fix repo sign for poudriere directory infrastructure --- tools/builder_common.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/builder_common.sh b/tools/builder_common.sh index f367f06..1bfd484 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -1707,8 +1707,21 @@ pkg_repo_rsync() { fi if [ -n "${PKG_REPO_SIGNING_COMMAND}" ]; then + + # Detect poudriere directory structure + if [ -L "${_repo_path}/.latest" ]; then + local _real_repo_path=$(readlink -f ${_repo_path}/.latest) + else + local _real_repo_path=${_repo_path} + fi + echo -n ">>> Signing repository... " | tee -a ${_logfile} - if script -aq ${_logfile} pkg repo ${_repo_path} \ + ############ ATTENTION ############## + # + # For some reason pkg-repo fail without / in the end of directory name + # so removing it will break command + # + if script -aq ${_logfile} pkg repo ${_real_repo_path}/ \ signing_command: ${PKG_REPO_SIGNING_COMMAND} >/dev/null 2>&1; then echo "Done!" | tee -a ${_logfile} else -- cgit v1.1