From 674a4e5b0183eaf731e0eb4ce21b1954235e7be5 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Mon, 30 Jan 2006 13:03:24 +0000 Subject: [PATCH] dummy subscription --- zypp/solver/detail/Resolver.cc | 7 ++----- zypp/solver/detail/Resolver.h | 5 +++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/zypp/solver/detail/Resolver.cc b/zypp/solver/detail/Resolver.cc index 3de83e02c..3faf2801e 100644 --- a/zypp/solver/detail/Resolver.cc +++ b/zypp/solver/detail/Resolver.cc @@ -109,14 +109,11 @@ Resolver::reset (void) //--------------------------------------------------------------------------- -#warning Needs Source Backref -#if 0 void -Resolver::addSubscribedChannel (Channel_constPtr channel) +Resolver::addSubscribedSource (Source_Ref source) { - ERR << "Resolver::addSubscribedChannel() not implemented" << endl; + _subscribed.insert(source); } -#endif void Resolver::addPoolItemToInstall (PoolItem_Ref item) diff --git a/zypp/solver/detail/Resolver.h b/zypp/solver/detail/Resolver.h index 7b41e3757..b6fcd0c3b 100644 --- a/zypp/solver/detail/Resolver.h +++ b/zypp/solver/detail/Resolver.h @@ -79,6 +79,8 @@ class Resolver : public base::ReferenceCounted, private base::NonCopyable { ResolverContext_Ptr _best_context; bool _timed_out; + std::set _subscribed; + public: Resolver (const ResPool & pool); @@ -107,8 +109,7 @@ class Resolver : public base::ReferenceCounted, private base::NonCopyable { ResPool pool (void) const; void setPool (const ResPool & pool) { _pool = pool; } -// void setCurrentChannel (Channel_constPtr channel) { _current_channel = channel; } -// void addSubscribedChannel (Channel_constPtr channel); + void addSubscribedSource (Source_Ref source); void addPoolItemToInstall (PoolItem_Ref item); void addPoolItemsToInstallFromList (PoolItemList & rl); -- 2.34.1