]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
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>
Thu, 11 Jul 2013 08:55:39 +0000 (10:55 +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 915c865e84fb05438adac5816661caa1ae3a0368..65b06891f95613fe7349a5570868163ef89ef03b 100644 (file)
@@ -656,9 +656,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);
 }