From de241a3d3e8121c1229ada323735cbb028d1571e Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Mon, 12 Jun 2006 09:46:02 +0000 Subject: [PATCH] fix compile error --- zypp/SourceManager.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zypp/SourceManager.cc b/zypp/SourceManager.cc index 28f2443..7ba8d25 100644 --- a/zypp/SourceManager.cc +++ b/zypp/SourceManager.cc @@ -339,10 +339,9 @@ namespace zypp MIL << "Found sources: " << new_sources.size() << endl; - for( std::list::iterator it = new_sources.begin(); - it != new_sources.end(); ++it) + for( std::list::iterator it = new_sources.begin(); it != new_sources.end(); ++it) { - if ( (alias_filter.size() == 0) || ( alias_filter == it->alias()) ) + if ( (alias_filter.empty() == 0) || ( alias_filter.compare(it->alias) == 0 ) ) { // Note: Url(it->url).asString() to hide password in logs MIL << "Restoring source: url:[" << Url(it->url).asString() << "] product_dir:[" << it->product_dir << "] alias:[" << it->alias << "] cache_dir:[" << it->cache_dir << "]" << endl; -- 2.7.4