Author: dmacvicar Date: Fri Aug 10 16:08:28 2007 New Revision: 6587 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6587&view=rev Log: more debugging Modified: trunk/libzypp/zypp/Edition.cc Modified: trunk/libzypp/zypp/Edition.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Edition.cc?rev=6587&r1=6586&r2=6587&view=diff ============================================================================== --- trunk/libzypp/zypp/Edition.cc (original) +++ trunk/libzypp/zypp/Edition.cc Fri Aug 10 16:08:28 2007 @@ -156,11 +156,11 @@ std::cout << "size: " << what.size() << std::endl; - for (int i = 1; i < what.size(); ++i) + for (int i = 1; i < 4; ++i) std::cout << i << ": " << what[i] << std::endl; - if( str::regex_match( edition_r, what, _rxEdition ) && what.size() >= 3) + if( str::regex_match( edition_r, what, _rxEdition )) { if ( what[1].size() > 1 ) _epoch = strtoul( what[1].c_str(), NULL, 10 ); @@ -168,6 +168,9 @@ _version = what[2]; if ( what[3].size() ) _release = what[3]; + + std::cout << "successful epoch *" << _epoch << "* version *" << _version << " release *" + << _release << std::endl; } else { -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org