On Tue, Jul 31, Jan Kupec wrote:
dmacvicar@svn.opensuse.org wrote:
Author: dmacvicar Date: Mon Jul 30 23:42:43 2007 New Revision: 6311
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6311&view=rev Log: dont use baseUrls (deprecated, perhaps we remove it) use the url iterator
Let's keep baseUrls(), it's handy for the application to store the set of urls and then work with it if appropriate. Example use case: when initializing repos (checking if to refresh for those with autorefresh enabled), if the app finds out the repo is invalid, it can disable it in its internal set and ignore it for the rest of the operation.
Then the apllication can do: list<Url> myUrls( repo.baseUrlsBegin(), repo.baseUrlEend() ); instead of list<Url> myUrls( repo.baseUrls() ); IMO the iterator ctor is even more convenient, as you can use any container type: set<Url> myUrls( repo.baseUrlsBegin(), repo.baseUrlEend() ); vector<Url> myUrls( repo.baseUrlsBegin(), repo.baseUrlEend() ); -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org