Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 386958 Details for
Bug 525876
app-portage/ufed-0.91 does not support /etc/portage/package.use/
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to treat dirs as files _noncomments
ufed-recurse.patch (text/plain), 545 bytes, created by
Martin Väth
on 2014-10-19 17:07:25 UTC
(
hide
)
Description:
Patch to treat dirs as files _noncomments
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2014-10-19 17:07:25 UTC
Size:
545 bytes
patch
obsolete
>--- 1/Portage.pm >+++ 1/Portage.pm >@@ -705,12 +705,19 @@ > } > > >-# returns a list of all lines of a given file >+# returns a list of all lines of a given file/dir > # that are no pure comments >-# Parameter 1: filename >+# Parameter 1: filename/dirname > sub _noncomments { > my ($fname) = @_; > my @result; >+ if(-d $fname) { >+ @result = (); >+ for my $i (_get_files_from_dir($fname)) { >+ (-f $i) && push @result, _noncomments($i); >+ } >+ return @result; >+ } > local $/; > if(open my $file, '<', $fname) { > binmode( $file, ":encoding(UTF-8)" );
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 525876
: 386958