Project

General

Profile

« Previous | Next » 

Revision efcf5e2a

Added by Renato Botelho over 9 years ago

Fix repo sign for poudriere directory infrastructure

View differences:

tools/builder_common.sh
1707 1707
	fi
1708 1708

  
1709 1709
	if [ -n "${PKG_REPO_SIGNING_COMMAND}" ]; then
1710

  
1711
		# Detect poudriere directory structure
1712
		if [ -L "${_repo_path}/.latest" ]; then
1713
			local _real_repo_path=$(readlink -f ${_repo_path}/.latest)
1714
		else
1715
			local _real_repo_path=${_repo_path}
1716
		fi
1717

  
1710 1718
		echo -n ">>> Signing repository... " | tee -a ${_logfile}
1711
		if script -aq ${_logfile} pkg repo ${_repo_path} \
1719
		############ ATTENTION ##############
1720
		#
1721
		# For some reason pkg-repo fail without / in the end of directory name
1722
		# so removing it will break command
1723
		#
1724
		if script -aq ${_logfile} pkg repo ${_real_repo_path}/ \
1712 1725
		    signing_command: ${PKG_REPO_SIGNING_COMMAND} >/dev/null 2>&1; then
1713 1726
			echo "Done!" | tee -a ${_logfile}
1714 1727
		else

Also available in: Unified diff