ref: refs/heads/master
commit 2be865178f8254073bcb29c4851aac97f8cbf313
Author: Ján Kupec
Date: Thu Dec 3 12:12:34 2009 +0100
Show truely all updates when --all is used (bnc #557557)
---
src/update.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/update.cc b/src/update.cc
index 7e84c9c..ca1ccf1 100755
--- a/src/update.cc
+++ b/src/update.cc
@@ -325,14 +325,18 @@ find_updates( const ResKind & kind, Candidates & candidates )
}
+ // get --all available updates, no matter if they are installable or break
+ // some current policy
for_(it, pool.proxy().byKindBegin(kind), pool.proxy().byKindEnd(kind))
{
if (!(*it)->hasInstalledObj())
continue;
- PoolItem candidate = (*it)->updateCandidateObj();
+ PoolItem candidate = (*it)->highestAvailableVersionObj(); // bnc #557557
if (!candidate)
continue;
+ if (compareByNVRA((*it)->installedObj().resolvable(), candidate.resolvable()) >= 0)
+ continue;
DBG << "selectable: " << **it << endl;
DBG << "candidate: " << candidate << endl;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org