Lines 229-245
ParseCache::readPackage(Category &vec, c
Link Here
|
229 |
else |
229 |
else |
230 |
pkg = vec.addPackage(pkg_name); |
230 |
pkg = vec.addPackage(pkg_name); |
231 |
|
231 |
|
232 |
for(vector<string>::const_iterator it = files.begin(); |
232 |
for(vector<string>::const_iterator that = files.begin(); |
233 |
it != files.end(); ++it) { |
233 |
that != files.end(); ++that) { |
234 |
string::size_type pos = ebuild_pos(*it); |
234 |
string::size_type pos = ebuild_pos(*that); |
235 |
if(pos == string::npos) |
235 |
if(pos == string::npos) |
236 |
continue; |
236 |
continue; |
237 |
|
237 |
|
238 |
/* Check if we can split it */ |
238 |
/* Check if we can split it */ |
239 |
char *ver = ExplodeAtom::split_version(it->substr(0, pos).c_str()); |
239 |
char *ver = ExplodeAtom::split_version(that->substr(0, pos).c_str()); |
240 |
if(!ver) { |
240 |
if(!ver) { |
241 |
m_error_callback(eix::format(_("Can't split filename of ebuild %s/%s")) % |
241 |
m_error_callback(eix::format(_("Can't split filename of ebuild %s/%s")) % |
242 |
directory_path % (*it)); |
242 |
directory_path % (*that)); |
243 |
continue; |
243 |
continue; |
244 |
} |
244 |
} |
245 |
|
245 |
|
Lines 247-253
ParseCache::readPackage(Category &vec, c
Link Here
|
247 |
Version *version = new Version(ver); |
247 |
Version *version = new Version(ver); |
248 |
pkg->addVersionStart(version); |
248 |
pkg->addVersionStart(version); |
249 |
|
249 |
|
250 |
string full_path = directory_path + '/' + (*it); |
250 |
string full_path = directory_path + '/' + (*that); |
251 |
|
251 |
|
252 |
/* For the latest version read/change corresponding data */ |
252 |
/* For the latest version read/change corresponding data */ |
253 |
bool read_onetime_info = true; |
253 |
bool read_onetime_info = true; |