Mailinglist Archive: zypp-devel (27 mails)

< Previous Next >
[zypp-devel] [PATCH 1/2] multi-ver package should be erased from notupdated list
  • From: Zhang Qiang <qiang.z.zhang@xxxxxxxxx>
  • Date: Fri, 10 Dec 2010 13:06:02 +0800
  • Message-id: <1291957562-24924-1-git-send-email-qiang.z.zhang@xxxxxxxxx>
Packages, which support mult-version install, should not be in
notupdated list, or zypper would report some conflicting messages when
updating system.

See reference BUG: http://bugs.meego.com/show_bug.cgi?id=1595
---
src/Summary.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/Summary.cc b/src/Summary.cc
index 684f334..a435095 100644
--- a/src/Summary.cc
+++ b/src/Summary.cc
@@ -313,6 +313,15 @@ void Summary::readPool(const zypp::ResPool & pool)
inserter(notupdated[*kit], notupdated[*kit].begin()),
Summary::ResPairNameCompare());

+ for_(it, notupdated.begin(), notupdated.end())
+ {
+ for_(resit, it->second.begin(), it->second.end())
+ {
+ if (resit->second->multiversionInstall() == true)
+ it->second.erase(resit);
+ }
+ }
+
// remove kinds with empty sets after the set_difference
for (KindToResPairSet::iterator it = notupdated.begin(); it !=
notupdated.end();)
{
--
1.7.2.2

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages