Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 89960 Details for
Bug 137784
eix does not respect /etc/portage/package.* directories
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for eix-0.5.5 to consider dirs as a file
file_maybe_dir.patch (text/plain), 1.09 KB, created by
Martin Väth
on 2006-06-23 15:54:00 UTC
(
hide
)
Description:
Patch for eix-0.5.5 to consider dirs as a file
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2006-06-23 15:54:00 UTC
Size:
1.09 KB
patch
obsolete
>--- src/eixTk/utils.cc >+++ src/eixTk/utils.cc >@@ -43,7 +43,7 @@ > using namespace std; > > /** push_back every line of file into v. */ >-bool pushback_lines(const char *file, vector<string> *v, bool removed_empty) >+bool pushback_lines_file(const char *file, vector<string> *v, bool removed_empty) > { > string line; > ifstream ifstr(file); >@@ -71,6 +71,28 @@ > return false; > } > >+/** push_back every line of file or dir into v. */ >+bool pushback_lines(const char *file_dir, vector<string> *v, bool removed_empty) >+{ >+ static const char *files_exclude[] = { "..", "." , NULL }; >+ vector<string> files; >+ string dir(file_dir); >+ dir += "/"; >+ if(pushback_files(dir, files, files_exclude)) >+ { >+ bool rvalue=true; >+ for(vector<string>::iterator it=files.begin(); >+ it<files.end(); ++it) >+ { >+ if(! pushback_lines_file(it->c_str(), v, removed_empty)) >+ rvalue=false; >+ } >+ return rvalue; >+ } >+ else >+ return pushback_lines_file(file_dir, v, removed_empty); >+} >+ > /** List of files in directory. > * Pushed names of file in directory into string-vector if the don't match any > * char * in given exlude list.
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 137784
:
89960
|
89981
|
89982
|
90681