Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 358073
Collapse All | Expand All

(-)/usr/bin/revdep-rebuild (-3 / +4 lines)
Lines 549-557 Link Here
549
	local new_env
549
	local new_env
550
	local old_env
550
	local old_env
551
	local uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]')
551
	local uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]')
552
	# Find a place to put temporary files
552
	# Find a place to put temporary files 
553
	if [[ "$uid" == "root" ]]; then
553
	local proposed_target="/var/cache/${APP_NAME}"
554
		local tmp_target="/var/cache/${APP_NAME}"
554
	if [[ "$uid" == "root" ]] && [[ -d $proposed_target ]] ; then
555
		local tmp_target=$proposed_target
555
	else
556
	else
556
		local tmp_target="$(mktemp -d -t revdep-rebuild.XXXXXXXXXX)"
557
		local tmp_target="$(mktemp -d -t revdep-rebuild.XXXXXXXXXX)"
557
	fi
558
	fi

Return to bug 358073