From a33dccdafdd5331ef78f6b71ac216ee07664d6f6 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Fri, 8 Aug 2008 11:38:54 +0000 Subject: [PATCH] replace ResTraits<>::kind by ResKind --- devel/Example.createCapabilities.cc | 2 +- devel/devel.dmacvicar/CacheStore_tp.cc | 6 +++--- devel/devel.ma/FakePool.h | 12 ++++++------ devel/devel.shaas/PdbToZypp/pdbtozypp.cc | 2 +- devel/devel.shaas/old/dbmain.cc | 2 +- tools/registration/zypp-query-pool.cc | 8 ++++---- zypp/ResFilters.h | 6 +++--- zypp/ResKind.cc | 2 +- zypp/ResTraits.h | 4 ++-- zypp/pool/GetResolvablesToInsDel.cc | 2 +- zypp/solver/detail/Helper.cc | 2 +- zypp/solver/detail/SATResolver.cc | 2 +- zypp/target/rpm/RpmDb.cc | 4 ++-- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/devel/Example.createCapabilities.cc b/devel/Example.createCapabilities.cc index e167277..b0d504d 100644 --- a/devel/Example.createCapabilities.cc +++ b/devel/Example.createCapabilities.cc @@ -137,7 +137,7 @@ struct EnhacedCollector : public Collector try { // bulid Package deps. - _caps.insert( _factory.parse( ResTraits::kind, line_r ) ); + _caps.insert( _factory.parse( ResKind::package, line_r ) ); } catch( Exception & excpt_r ) { diff --git a/devel/devel.dmacvicar/CacheStore_tp.cc b/devel/devel.dmacvicar/CacheStore_tp.cc index 20b8fb6..1b780d4 100644 --- a/devel/devel.dmacvicar/CacheStore_tp.cc +++ b/devel/devel.dmacvicar/CacheStore_tp.cc @@ -31,7 +31,7 @@ int main(int argc, char **argv) { ZYpp::Ptr z = getZYpp(); -// CapabilityImpl::Ptr freak = capability::parse( ResTraits::kind, "libc.so.6"); +// CapabilityImpl::Ptr freak = capability::parse( ResKind::package, "libc.so.6"); // MIL << freak << endl; // MIL << "isVer: " << isKind(freak) << endl; // MIL << "isNam: " << isKind(freak) << endl; @@ -52,7 +52,7 @@ int main(int argc, char **argv) while (file && !file.eof()) { getline(file, buffer); - CapabilityImpl::Ptr cap = capability::parse( ResTraits::kind, buffer ); + CapabilityImpl::Ptr cap = capability::parse( ResKind::package, buffer ); if ( cap == 0L ) { //ZYPP_THROW(Exception("Invalid capability: [" + buffer + "]")); @@ -69,7 +69,7 @@ int main(int argc, char **argv) for ( list::const_iterator it = caps.begin(); it != caps.end(); ++it ) { CapabilityImpl::Ptr cap = *it; - if ( ( ! cap ) || ( cap->refers() != ResTraits::kind ) ) + if ( ( ! cap ) || ( cap->refers() != ResKind::package ) ) { ERR << "Invalid capability : [" << buffer << "]" << endl; continue; diff --git a/devel/devel.ma/FakePool.h b/devel/devel.ma/FakePool.h index 73238e7..d95c8cf 100644 --- a/devel/devel.ma/FakePool.h +++ b/devel/devel.ma/FakePool.h @@ -60,7 +60,7 @@ namespace zypp public: DataCollect( bool verbose_r = true ) : _definst( false ) - , _defkind( ResTraits::kind ) + , _defkind( ResKind::package ) , _defdep( Dep::PROVIDES ) , _defdepref( _defkind ) , _verbose( verbose_r ) @@ -160,17 +160,17 @@ namespace zypp if ( _d ) { ResObject::Ptr p; - if ( _d->_kind == ResTraits::kind ) + if ( _d->_kind == ResKind::package ) p = make(); - else if ( _d->_kind == ResTraits::kind ) + else if ( _d->_kind == ResKind::srcpackage ) p = make(); else if ( _d->_kind == ResTraits::kind ) p = make(); - else if ( _d->_kind == ResTraits::kind ) + else if ( _d->_kind == ResKind::pattern ) p = make(); - else if ( _d->_kind == ResTraits::kind ) + else if ( _d->_kind == ResKind::product ) p = make(); - else if ( _d->_kind == ResTraits::kind ) + else if ( _d->_kind == ResKind::patch ) p = make(); else if ( _d->_kind == ResTraits