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

(-)a/bin/euse (-5 / +7 lines)
Lines 448-454 get_all_make_conf() { Link Here
448
# component by traversing through the cascading profile
448
# component by traversing through the cascading profile
449
#
449
#
450
# Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles
450
# Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles
451
# A value before the ':' references the repository, no value means gentoo
451
# A value before the ':' references the repository, no value means same repo
452
#
452
#
453
# Example: local:base would refer to the profiles directory in the repository
453
# Example: local:base would refer to the profiles directory in the repository
454
# path owned by the 'local' repository
454
# path owned by the 'local' repository
Lines 475-486 traverse_profile() { Link Here
475
				# We have a path with a colon shortcut
475
				# We have a path with a colon shortcut
476
				let i=$index-1
476
				let i=$index-1
477
				repo="${parent:0:${i}}"
477
				repo="${parent:0:${i}}"
478
				[[ -z "${repo}" ]] && repo="gentoo"
479
				parent="${parent:$index}"
478
				parent="${parent:$index}"
480
				limit=${#PORTAGE_REPOS[@]}
479
				limit=${#PORTAGE_REPOS[@]}
481
				for ((i=0; i < limit ; i++)); do
480
				for ((i=0; i < limit ; i++)); do
482
					if [[ ${repo} == ${PORTAGE_REPOS[i]} ]]; then
481
					repo_profiles="${PORTAGE_REPO_PATHS[i]}/profiles"
483
						parent="${PORTAGE_REPO_PATHS[i]}/profiles/${parent}"
482
					if [[ "${repo}" == ${PORTAGE_REPOS[i]} ]] || \
483
						( [[ -z "${repo}" ]] &&
484
						[[ "${curdir}" == ${repo_profiles}/* ]] )
485
					then
486
						parent="${repo_profiles}/${parent}"
484
						break
487
						break
485
					fi
488
					fi
486
				done
489
				done
487
- 

Return to bug 473760