From f0cd3f1d8a4c58c248534bbd9b9cd92064fc8190 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Sun, 19 Mar 2006 18:20:11 +0000 Subject: [PATCH] actually use edition and architecture provided by parser/yum for all resolvables --- zypp/source/yum/YUMGroupImpl.cc | 4 ++-- zypp/source/yum/YUMSourceImpl.cc | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/zypp/source/yum/YUMGroupImpl.cc b/zypp/source/yum/YUMGroupImpl.cc index f39428f..5003933 100644 --- a/zypp/source/yum/YUMGroupImpl.cc +++ b/zypp/source/yum/YUMGroupImpl.cc @@ -37,9 +37,9 @@ namespace zypp Source_Ref source_r, const zypp::parser::yum::YUMGroupData & parsed ) - : _user_visible(parsed.userVisible == "true") + : _summary(parsed.name) , _description(parsed.description) - , _summary(parsed.name) + , _user_visible(parsed.userVisible == "true") , _source(source_r) { // to name std::string groupId; diff --git a/zypp/source/yum/YUMSourceImpl.cc b/zypp/source/yum/YUMSourceImpl.cc index 6a81193..fc3d24a 100644 --- a/zypp/source/yum/YUMSourceImpl.cc +++ b/zypp/source/yum/YUMSourceImpl.cc @@ -514,7 +514,7 @@ namespace zypp // create Atom CapFactory f; Dependencies deps = createDependencies( parsed, ResTraits::kind ); - deps[Dep::REQUIRES].insert( f.parse( ResTraits::kind, parsed.name, Rel::EQ, edition ) ); +// deps[Dep::REQUIRES].insert( f.parse( ResTraits::kind, parsed.name, Rel::EQ, edition ) ); NVRAD atomdata( nvra, deps ); ResImplTraits::Ptr atomimpl = new YUMAtomImpl( source_r ); Atom::Ptr atom = detail::makeResolvableFromImpl( atomdata, atomimpl); @@ -584,9 +584,9 @@ namespace zypp ResImplTraits::Ptr impl(new YUMGroupImpl(source_r, parsed)); // Collect basic Resolvable data NVRAD dataCollect( parsed.groupId, - Edition::noedition, - Arch_noarch, - createGroupDependencies(parsed)); + Edition::noedition, // group has just a name, + Arch_noarch, // pattern has edition & arch + createGroupDependencies(parsed)); Selection::Ptr group = detail::makeResolvableFromImpl( dataCollect, impl ); @@ -609,9 +609,9 @@ namespace zypp ResImplTraits::Ptr impl(new YUMPatternImpl(source_r, parsed)); // Collect basic Resolvable data NVRAD dataCollect( parsed.name, - Edition::noedition, - Arch_noarch, - createDependencies(parsed, ResTraits::kind)); + Edition( parsed.ver, parsed.rel, parsed.epoch ), + Arch( parsed.arch ), + createDependencies(parsed, ResTraits::kind)); Pattern::Ptr pattern = detail::makeResolvableFromImpl( dataCollect, impl ); @@ -636,7 +636,7 @@ namespace zypp // Collect basic Resolvable data NVRAD dataCollect( parsed.name, Edition( parsed.ver, parsed.rel, parsed.epoch ), - Arch_noarch, + Arch( parsed.arch ), createDependencies(parsed, ResTraits::kind) ); @@ -664,7 +664,7 @@ namespace zypp // Collect basic Resolvable data NVRAD dataCollect( parsed.name, Edition( parsed.ver, parsed.rel, parsed.epoch ), - Arch_noarch, + Arch( parsed.arch ), createDependencies(parsed, ResTraits