{
Measure x( "PARSE" );
- parser::ProductFileData val;
std::vector<parser::ProductFileData> result;
-
- parser::ProductFileReader::scanDir( functor::getFirst( val ),
- //functor::getAll( std::back_inserter( result ) ),
+ parser::ProductFileReader::scanDir( functor::getAll( std::back_inserter( result ) ),
sysRoot / "etc/products.d" );
- USR << val << endl;
- USR << result << endl;
+ MIL << "Products: " << result << endl;
}
#if 0
obj.edition().c_str(),
obj.arch().c_str(),
obj.vendor().c_str() );
+ if ( ! obj.upgrades().empty() )
+ {
+ for_( it, obj.upgrades().begin(), obj.upgrades().end() )
+ str << endl << " " << *it;
+ }
return str;
}
std::ostream & operator<<( std::ostream & str, const ProductFileData::Upgrade & obj )
{
- str << str::form( " |upgrade|%s|",
+ str << str::form( "|upgrade|%s|",
obj.name().c_str() );
return str;
}