ref: refs/heads/master
commit 9b9c40b5458a0b9c6c048333e2fedd9e01ceb8c6
Author: Ján Kupec
Date: Tue Mar 10 16:48:40 2009 +0100
list-updates fix (bnc #483910)
Avoiding showing not-yet-installed packages in list-updates output.
---
src/update.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/update.cc b/src/update.cc
index eebee6a..7bb21af 100755
--- a/src/update.cc
+++ b/src/update.cc
@@ -18,6 +18,8 @@ using namespace boost;
extern ZYpp::Ptr God;
+static PoolItem
+findInstalledItem( PoolItem item );
// ----------------------------------------------------------------------------
//
@@ -294,7 +296,9 @@ find_updates( const ResKind & kind, Candidates & candidates )
it = God->pool().begin(),
e = God->pool().end();
for (; it != e; ++it)
- if (it->status().isToBeInstalled())
+ // show every package picked by doUpdate for installation
+ // except the ones which are not currently installed (bnc #483910)
+ if (it->status().isToBeInstalled() && findInstalledItem(*it))
candidates.insert(*it);
return;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org