projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3553025
)
dont use baseUrls (deprecated, perhaps we remove it)
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Mon, 30 Jul 2007 21:42:43 +0000
(21:42 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Mon, 30 Jul 2007 21:42:43 +0000
(21:42 +0000)
use the url iterator
src/zypper-sources.cc
patch
|
blob
|
history
diff --git
a/src/zypper-sources.cc
b/src/zypper-sources.cc
index
87b15f9
..
1e5c228
100644
(file)
--- a/
src/zypper-sources.cc
+++ b/
src/zypper-sources.cc
@@
-123,10
+123,8
@@
static void print_repo_list( const std::list<zypp::RepoInfo> &repos )
tr << repo.type().asString();
tr << repo.alias();
- std::set<Url> urls;
- urls = repo.baseUrls();
- for ( RepoInfo::urls_const_iterator uit = urls.begin();
- uit != urls.end();
+ for ( RepoInfo::urls_const_iterator uit = repo.baseUrlsBegin();
+ uit != repo.baseUrlsEnd();
++uit )
{
tr << (*uit).asString();