From bce01b9056e01417e91a6939ae13d02a0f507544 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Tue, 5 Feb 2008 15:16:05 +0000 Subject: [PATCH] use new load function --- src/zypp-checkpatches.cc | 11 +++-------- src/zypper-misc.cc | 6 +----- src/zypper-repos.cc | 5 ++--- src/zypper-utils.cc | 4 ---- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/zypp-checkpatches.cc b/src/zypp-checkpatches.cc index ddddf29..ef37fcc 100644 --- a/src/zypp-checkpatches.cc +++ b/src/zypp-checkpatches.cc @@ -225,10 +225,8 @@ int main(int argc, char **argv) for ( std::list::const_iterator it = repos.begin(); it != repos.end(); ++it ) { - Repository repository = manager.createFromCache(*it); - // FIXME fow now this will add repository resolvables - repository.resolvables(); - //God->addResolvables(); + // load into the pool + manager.loadFromCache(it->alias()); } if ( repos.size() == 0 ) @@ -236,11 +234,8 @@ int main(int argc, char **argv) errors.push_back( str::form( _( "There are no update repositories defined. Please add one or more update repositories in order to be notified of updates.") ) ); } + // load into the pool God->target()->load(); - //God->addResolvables( God->target()->resolvables(), true); - - // FIXME no need to establish? - //God->resolver()->establishPool(); int count = 0; int security_count = 0; diff --git a/src/zypper-misc.cc b/src/zypper-misc.cc index f5791a8..1bb62cb 100644 --- a/src/zypper-misc.cc +++ b/src/zypper-misc.cc @@ -19,7 +19,7 @@ #include "zypp/RepoInfo.h" -//#include "zypp/CapFactory.h" +#include "zypp/Capabilities.h" #include "zypp/target/store/xml_escape_parser.hpp" @@ -75,8 +75,6 @@ ResObject::Kind string_to_kind (const string &skind) string lskind = str::toLower (skind); if (lskind == "package") return ResTraits::kind; - if (lskind == "selection") - return ResTraits::kind; if (lskind == "pattern") return ResTraits::kind; if (lskind == "product") @@ -87,8 +85,6 @@ ResObject::Kind string_to_kind (const string &skind) return ResTraits