Do recommends pruning after selecting the highest versions
authorMichael Schroeder <mls@suse.de>
Tue, 18 Jun 2013 12:37:09 +0000 (14:37 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 18 Jun 2013 12:37:09 +0000 (14:37 +0200)
Michael Andres convinced me that is is what most users want. It
doesn't break any test cases, so let's hope it makes the world
a better place ;)

src/policy.c

index 96d3581..a73fc14 100644 (file)
@@ -665,9 +665,9 @@ policy_filter_unwanted(Solver *solv, Queue *plist, int mode)
       if (plist->count > 1 && pool->installed && (solv->dupmap_all || solv->dupinvolvedmap.size))
        prune_installed_dup_packages(solv, plist);
     }
+  prune_best_arch_name_version(solv, pool, plist);
   if (plist->count > 1 && mode == POLICY_MODE_CHOOSE)
     prune_to_recommended(solv, plist);
-  prune_best_arch_name_version(solv, pool, plist);
 }