From e914cd5aeaabbd355efa88b18b072d20588750b7 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Wed, 13 Jun 2007 14:29:54 +0000 Subject: [PATCH] - recreate all kind of resolvables --- zypp/repo/cached/RepoImpl.cc | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/zypp/repo/cached/RepoImpl.cc b/zypp/repo/cached/RepoImpl.cc index 17b90da..25833c6 100644 --- a/zypp/repo/cached/RepoImpl.cc +++ b/zypp/repo/cached/RepoImpl.cc @@ -17,8 +17,20 @@ #include "zypp/detail/ResImplTraits.h" #include "zypp/CapFactory.h" +#include "zypp/Package.h" +#include "zypp/Pattern.h" +#include "zypp/Patch.h" +#include "zypp/Message.h" +#include "zypp/Script.h" +#include "zypp/Atom.h" + #include "zypp/repo/cached/RepoImpl.h" #include "zypp/repo/cached/PackageImpl.h" +#include "zypp/repo/cached/PatternImpl.h" +#include "zypp/repo/cached/PatchImpl.h" +#include "zypp/repo/cached/MessageImpl.h" +#include "zypp/repo/cached/ScriptImpl.h" +#include "zypp/repo/cached/AtomImpl.h" using namespace zypp::detail; using namespace zypp::cache; @@ -98,6 +110,36 @@ void RepoImpl::createResolvables() Package::Ptr package = detail::makeResolvableFromImpl( it->second.second, impl ); _store.insert (package); } + else if ( it->second.first == ResTraits::kind ) + { + ResImplTraits::Ptr impl = new cached::PatternImpl(it->first, this); + Pattern::Ptr pattern = detail::makeResolvableFromImpl( it->second.second, impl ); + _store.insert (pattern); + } + else if ( it->second.first == ResTraits::kind ) + { + ResImplTraits::Ptr impl = new cached::PatchImpl(it->first, this); + Patch::Ptr patch = detail::makeResolvableFromImpl( it->second.second, impl ); + _store.insert (patch); + } + else if ( it->second.first == ResTraits::kind ) + { + ResImplTraits::Ptr impl = new cached::MessageImpl(it->first, this); + Message::Ptr message = detail::makeResolvableFromImpl( it->second.second, impl ); + _store.insert (message); + } + else if ( it->second.first == ResTraits