Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 176008 | Differences between
and this patch

Collapse All | Expand All

(-)a/emerge-delta-webrsync (-2 / +12 lines)
Lines 217-223 sync_local() { Link Here
217
	echo Syncing local tree...
217
	echo Syncing local tree...
218
	if type -p tarsync &> /dev/null; then
218
	if type -p tarsync &> /dev/null; then
219
		echo "apparently you have tarsync installed.  using it."
219
		echo "apparently you have tarsync installed.  using it."
220
		if ! tarsync "${FILE}" "${PORTDIR}" -v -s 1 -o portage -g portage -e /distfiles -e /packages -e /local; then
220
		local owner_opts="-o portage -g portage"
221
		if has usersync ${FEATURES} ; then
222
			case "${USERLAND}" in
223
				BSD)
224
					owner_opts=$(stat -f '-o %Su -g %Sg' "${PORTDIR}")
225
					;;
226
				*)
227
					owner_opts=$(stat -c '-o %U -g %G' "${PORTDIR}")
228
					;;
229
			esac
230
		fi
231
		if ! tarsync "${FILE}" "${PORTDIR}" -v -s 1 ${owner_opts} -e /distfiles -e /packages -e /local; then
221
			echo "ok, tarsync failed.  that's teh suck :/"
232
			echo "ok, tarsync failed.  that's teh suck :/"
222
			exit 6
233
			exit 6
223
		fi
234
		fi
224
- 

Return to bug 176008