Author: mlandres Date: Tue Sep 16 15:28:06 2008 New Revision: 11076 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11076&view=rev Log: tollerate empty url Modified: trunk/libzypp/zypp/parser/ServiceFileReader.cc Modified: trunk/libzypp/zypp/parser/ServiceFileReader.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/parser/ServiceFileReader.cc?rev=11076&r1=11075&r2=11076&view=diff ============================================================================== --- trunk/libzypp/zypp/parser/ServiceFileReader.cc (original) +++ trunk/libzypp/zypp/parser/ServiceFileReader.cc Tue Sep 16 15:28:06 2008 @@ -62,7 +62,7 @@ // MIL << (*it).first << endl; if ( it->first == "name" ) service.setName( it->second ); - else if ( it->first == "url" ) + else if ( it->first == "url" && ! it->second.empty() ) service.setUrl( Url (it->second) ); else if ( it->first == "enabled" ) service.setEnabled( str::strToTrue( it->second ) ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org