From 48d1de8594f9d2ecae3daf7bbfb74c20421431e8 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Mon, 3 Mar 2008 16:10:07 +0000 Subject: [PATCH] prevent reinstallation of installed packages --- zypp/solver/detail/ResolverUpgrade.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zypp/solver/detail/ResolverUpgrade.cc b/zypp/solver/detail/ResolverUpgrade.cc index 9caf62327..5929f44a8 100644 --- a/zypp/solver/detail/ResolverUpgrade.cc +++ b/zypp/solver/detail/ResolverUpgrade.cc @@ -440,7 +440,13 @@ Resolver::doUpgrade( UpgradeStatistics & opt_stats_r ) } else if ( provider.status().isToBeUninstalled() ) { MIL << " IGNORE relation match (package is tagged to delete): " << provider << endl; } else if ( provider.status().isInstalled() ) { - MIL << " IGNORE relation match (package is installed): " << provider << endl; + if (installed->name() == provider->name()) { + MIL << " IGNORE relation match (package is installed): " << provider << endl; + } else { + MIL << " Take installed package ONLY: " << provider << endl; + providersMap.clear(); + break; // exit for + } } else { FindMap::iterator it = providersMap.find( provider->name() ); -- 2.34.1