From: Michael Andres Date: Fri, 8 Aug 2008 11:38:54 +0000 (+0000) Subject: replace ResTraits<>::kind by ResKind X-Git-Tag: BASE-SuSE-Code-11-Branch~523 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a33dccdafdd5331ef78f6b71ac216ee07664d6f6;p=platform%2Fupstream%2Flibzypp.git replace ResTraits<>::kind by ResKind --- 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