Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 152725 Details for
Bug 221151
app-portage/ufed-0.40-r8 needs update for new profile layout
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Parse all parents in profile
ufed-0.40-parents.patch (text/plain), 929 bytes, created by
Martin Väth
on 2008-05-10 08:50:31 UTC
(
hide
)
Description:
Parse all parents in profile
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2008-05-10 08:50:31 UTC
Size:
929 bytes
patch
obsolete
>--- Portage.pm >+++ Portage.pm >@@ -27,6 +27,7 @@ > sub read_make_defaults(); > sub read_make_globals(); > sub read_packages(); >+sub read_parents_pushing($$); > sub read_profiles(); > sub read_sh($); > sub read_use_defaults(); >@@ -203,16 +204,20 @@ > closedir $pkgdir; > } > >+sub read_parents_pushing($$) { >+ my ($dirname, $count) = @_; >+ die "Too many parents in profile.\n" unless $count; >+ for(noncomments "$dirname/parent") { >+ read_parents_pushing norm_path($dirname, $_), $count - 1; >+ } >+ push @profiles, $dirname; >+} >+ > sub read_profiles() { > $_ = readlink '/etc/make.profile'; > die "/etc/make.profile is not a symlink\n" if not defined $_; >- @profiles = norm_path '/etc', $_; >- PARENT: { >- for(noncomments "$profiles[0]/parent") { >- unshift @profiles, norm_path $profiles[0], $_; >- redo PARENT; >- } >- } >+ @profiles = (); >+ read_parents_pushing norm_path('/etc', $_), 1000; > push @profiles, '/etc/portage/profile'; > } >
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 221151
: 152725