Mailinglist Archive: zypp-commit (348 mails)

< Previous Next >
[zypp-commit] r9271 - /trunk/zypper/src/zypper-info.cc
  • From: jreidinger@xxxxxxxxxxxxxxxx
  • Date: Tue, 25 Mar 2008 15:09:19 -0000
  • Message-id: <20080325150919.40421271B3@xxxxxxxxxxxxxxxx>
Author: jreidinger
Date: Tue Mar 25 16:09:18 2008
New Revision: 9271

URL: http://svn.opensuse.org/viewcvs/zypp?rev=9271&view=rev
Log:
change byName iterator to byIdent iterator

Modified:
trunk/zypper/src/zypper-info.cc

Modified: trunk/zypper/src/zypper-info.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-info.cc?rev=9271&r1=9270&r2=9271&view=diff
==============================================================================
--- trunk/zypper/src/zypper-info.cc (original)
+++ trunk/zypper/src/zypper-info.cc Tue Mar 25 16:09:18 2008
@@ -51,17 +51,17 @@

// find the resolvable among installed
PoolItem installed;
- for(ResPool::byName_iterator it = pool.byNameBegin(*nameit);
- it != pool.byNameEnd(*nameit); ++it) {
+ for_( it, pool.byIdentBegin( kind, *nameit ),
+ pool.byIdentEnd( kind, *nameit ) )
+ {
if (it->status().isInstalled()) { installed = *it; break; }
}

// find installation candidate
ProvideProcess installer (God->architecture(), "" /*version*/);
- invokeOnEach(pool.byNameBegin(*nameit), pool.byNameEnd(*nameit),
- resfilter::ByKind(kind),
- zypp::functor::functorRef<bool,const zypp::PoolItem&> (installer)
- );
+ invokeOnEach( pool.byIdentBegin( kind, *nameit ),
+ pool.byIdentEnd( kind, *nameit ),
+ zypp::functor::functorRef<bool,const zypp::PoolItem&> (installer) );

if (!installer.item) {
// TranslatorExplanation E.g. "package zypper not found."

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages