25 #undef ZYPP_BASE_LOGGER_LOGGROUP
26 #define ZYPP_BASE_LOGGER_LOGGROUP "parser::susetags"
69 bool setFileCheckSum( std::map<std::string, CheckSum> & map_r,
const std::string & value )
const
72 std::vector<std::string> words;
73 if (
str::split( value, std::back_inserter( words ) ) == 3 )
75 map_r[words[2]] =
CheckSum( words[0], words[1] );
142 MIL <<
"[Content]" << endl;
162 const std::string & msg_r,
163 const std::string & line_r )
const
180 MIL <<
"Start parsing content repoindex" << input_r << endl;
183 std::ostringstream s;
184 s <<
"Can't read bad stream: " << input_r;
192 if ( ! ticks.
toMin() )
196 for( ; line; line.
next() )
199 std::string value( *line );
202 if ( key.empty() || *key.c_str() ==
'#' )
208 std::string modifier;
210 if ( pos != std::string::npos )
212 modifier = key.substr( pos+1 );
219 else if ( key ==
"DESCRDIR" )
223 else if ( key ==
"DATADIR" )
227 else if ( key ==
"KEY" )
234 else if ( key ==
"META" )
241 else if ( key ==
"HASH" )
254 if ( ! ticks.
set( input_r.
stream().tellg() ) )
261 if ( ! ticks.
toMax() )
265 MIL <<
"Done parsing " << input_r << endl;