Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 187131 Details for
Bug 264680
dev-perl/PortageXS-0.02.09 broken searchPackage in Core.pm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix
search_package.patch (text/plain), 1.90 KB, created by
Ralph Sennhauser (RETIRED)
on 2009-04-02 19:21:52 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Ralph Sennhauser (RETIRED)
Created:
2009-04-02 19:21:52 UTC
Size:
1.90 KB
patch
obsolete
>--- /usr/lib64/perl5/vendor_perl/5.8.8/PortageXS/Core.pm 2009-04-01 18:12:02.000000000 +0200 >+++ PortageXS/Core.pm 2009-04-02 20:29:43.000000000 +0200 >@@ -306,13 +306,15 @@ > # - not excluded and $_ is a dir? > if (! $self->{'EXCLUDE_DIRS'}{$tc} && -d $repo.'/'.$tc) { > $dhp = new DirHandle($repo.'/'.$tc); >- while (defined($tp = $dhp->read)) { >- # - look up if entry matches the search >- # (much faster if we already check now) > >- if ($tp =~m/$searchString/i) { >- # - not excluded and $_ is a dir? >- if (! $self->{'EXCLUDE_DIRS'}{$tp} && -d $repo.'/'.$tc.'/'.$tp) { >- push(@matches,$tc.'/'.$tp); >+ if (defined $dhp) { >+ while (defined($tp = $dhp->read)) { >+ # - look up if entry matches the search >+ # (much faster if we already check now) > >+ if ($tp =~m/$searchString/i) { >+ # - not excluded and $_ is a dir? >+ if (! $self->{'EXCLUDE_DIRS'}{$tp} && -d $repo.'/'.$tc.'/'.$tp) { >+ push(@matches,$tc.'/'.$tp); >+ } > } > } > } >@@ -330,13 +332,15 @@ > # - not excluded and $_ is a dir? > if (! $self->{'EXCLUDE_DIRS'}{$tc} && -d $repo.'/'.$tc) { > $dhp = new DirHandle($repo.'/'.$tc); >- while (defined($tp = $dhp->read)) { >- # - look up if entry matches the search >- # (much faster if we already check now) > >- if ($tp eq $searchString) { >- # - not excluded and $_ is a dir? >- if (! $self->{'EXCLUDE_DIRS'}{$tp} && -d $repo.'/'.$tc.'/'.$tp) { >- push(@matches,$tc.'/'.$tp); >+ if (defined $dhp) { >+ while (defined($tp = $dhp->read)) { >+ # - look up if entry matches the search >+ # (much faster if we already check now) > >+ if ($tp eq $searchString) { >+ # - not excluded and $_ is a dir? >+ if (! $self->{'EXCLUDE_DIRS'}{$tp} && -d $repo.'/'.$tc.'/'.$tp) { >+ push(@matches,$tc.'/'.$tp); >+ } > } > } > }
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 264680
: 187131