Author: dmacvicar Date: Wed Jun 13 16:29:54 2007 New Revision: 5743 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5743&view=rev Log: - recreate all kind of resolvables Modified: trunk/libzypp/zypp/repo/cached/RepoImpl.cc Modified: trunk/libzypp/zypp/repo/cached/RepoImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/cached/RepoImpl.cc?rev=5743&r1=5742&r2=5743&view=diff ============================================================================== --- trunk/libzypp/zypp/repo/cached/RepoImpl.cc (original) +++ trunk/libzypp/zypp/repo/cached/RepoImpl.cc Wed Jun 13 16:29:54 2007 @@ -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 @@ Package::Ptr package = detail::makeResolvableFromImpl( it->second.second, impl ); _store.insert (package); } + else if ( it->second.first == ResTraits<Pattern>::kind ) + { + ResImplTraitscached::PatternImpl::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<Patch>::kind ) + { + ResImplTraitscached::PatchImpl::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<Message>::kind ) + { + ResImplTraitscached::MessageImpl::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<Script>::kind ) + { + ResImplTraitscached::ScriptImpl::Ptr impl = new cached::ScriptImpl(it->first, this); + Script::Ptr script = detail::makeResolvableFromImpl( it->second.second, impl ); + _store.insert (script); + } + else if ( it->second.first == ResTraits<Atom>::kind ) + { + ResImplTraitscached::AtomImpl::Ptr impl = new cached::AtomImpl(it->first, this); + Atom::Ptr atom = detail::makeResolvableFromImpl( it->second.second, impl ); + _store.insert (atom); + } } con.executenonquery("COMMIT;"); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org