25 #undef ZYPP_BASE_LOGGER_LOGGROUP
26 #define ZYPP_BASE_LOGGER_LOGGROUP "parser::susetags"
68 bool setFileCheckSum( std::map<std::string, CheckSum> & map_r,
const std::string & value )
const
71 std::vector<std::string> words;
72 if (
str::split( value, std::back_inserter( words ) ) == 3 )
74 map_r[words[2]] =
CheckSum( words[0], words[1] );
140 MIL <<
"[Content]" << endl;
160 const std::string & msg_r,
161 const std::string & line_r )
const
178 MIL <<
"Start parsing content repoindex" << input_r << endl;
181 std::ostringstream s;
182 s <<
"Can't read bad stream: " << input_r;
190 if ( ! ticks.
toMin() )
194 for( ; line; line.
next() )
197 std::string value( *line );
200 if ( key.empty() || *key.c_str() ==
'#' )
206 std::string modifier;
208 if ( pos != std::string::npos )
210 modifier = key.substr( pos+1 );
217 else if ( key ==
"DESCRDIR" )
221 else if ( key ==
"DATADIR" )
225 else if ( key ==
"KEY" )
232 else if ( key ==
"META" )
239 else if ( key ==
"HASH" )
252 if ( ! ticks.
set( input_r.
stream().tellg() ) )
259 if ( ! ticks.
toMax() )
263 MIL <<
"Done parsing " << input_r << endl;