} 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() );