Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315867 Details for
Bug 421287
gentoolkit 0.3.0.6 euse -i option causes a lot of no such file or directory with app-admin/eselect-1.3.1.1_beta4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
euse patch
euse.414961.patch (text/plain), 2.53 KB, created by
Paul Varner (RETIRED)
on 2012-06-20 16:02:59 UTC
(
hide
)
Description:
euse patch
Filename:
MIME Type:
Creator:
Paul Varner (RETIRED)
Created:
2012-06-20 16:02:59 UTC
Size:
2.53 KB
patch
obsolete
>From 5178cca2df2b35a273ea97b15cbf011a4a08cb66 Mon Sep 17 00:00:00 2001 >From: Paul Varner <fuzzyray@gentoo.org> >Date: Wed, 20 Jun 2012 10:56:16 -0500 >Subject: [PATCH] Add support for ':' in the profiles parent file for bug > 414961. > >Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles >A value before the ':' references the repository, no value means >gentoo > >Example: local:base would refer to the profiles directory in the >repository path owned by the 'local' repository >--- > bin/euse | 27 ++++++++++++++++++++++++++- > 1 files changed, 26 insertions(+), 1 deletions(-) > >diff --git a/bin/euse b/bin/euse >index 4d2c15d..85ff924 100755 >--- a/bin/euse >+++ b/bin/euse >@@ -16,6 +16,10 @@ EPREFIX=${EPREFIX:-$(portageq envvar EPREFIX)} > ETC="${EPREFIX}/etc" > USR_SHARE_PORTAGE="${EPREFIX}/usr/share/portage" > >+# Arrays containing the known repository names and repository profile paths >+PORTAGE_REPOS=( $(portageq get_repos ${EPREFIX}/) ) >+PORTAGE_REPO_PATHS=( $(portageq get_repo_path ${EPREFIX}/ ${PORTAGE_REPOS[@]}) ) >+ > # define error functions so they can be used immediately > fatal() { > echo -e "ERROR: ${*}" >@@ -433,6 +437,12 @@ get_all_make_conf() { > # General method of collecting the contents of a profile > # component by traversing through the cascading profile > # >+# Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles >+# A value before the ':' references the repository, no value means gentoo >+# >+# Example: local:base would refer to the profiles directory in the repository >+# path owned by the 'local' repository >+# > # Arguments: > # $1 - Filename (make.profile) > # [$2] - Current directory (unspecified means to start at the top) >@@ -446,10 +456,25 @@ traverse_profile() { > if [[ -f "${curdir}/parent" ]]; then > for parent in $(egrep -v '(^#|^ *$)' ${curdir}/parent); do > # Bug 231394, handle parent path being absolute >+ index=$(expr index "${parent}" :) > if [[ ${parent:0:1} == "/" ]]; then > pdir="$(get_real_path ${parent})" >- else >+ elif [[ $index -eq 0 ]]; then > pdir="$(get_real_path ${curdir}/${parent})" >+ else >+ # We have a path with a colon shortcut >+ let i=$index-1 >+ repo="${parent:0:${i}}" >+ [[ -z "${repo}" ]] && repo="gentoo" >+ parent="${parent:$index}" >+ limit=${#PORTAGE_REPOS[@]} >+ for ((i=0; i < limit ; i++)); do >+ if [[ ${repo} == ${PORTAGE_REPOS[i]} ]]; then >+ parent="${PORTAGE_REPO_PATHS[i]}/profiles/${parent}" >+ break >+ fi >+ done >+ pdir="$(get_real_path ${parent})" > fi > rvalue="${rvalue} $(traverse_profile ${1} ${pdir})" > done >-- >1.7.8.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 421287
:
315457
|
315463
| 315867