summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-05-21 18:06:17 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-06-09 15:11:01 +0200
commit69335858269845904635c592268cf9519e75c1a9 (patch)
treeb1d06b2cfed4a50f0c988998bf7d8b7dfea0942d /apt-pkg
parent978844db25deb7cd88b053bc2f4685caf2c61a75 (diff)
fix priority sorting by prefering higher in MarkInstall
Used to work until a certain (here unnamed) person came along and used the wrong operator causing low-priority packages to be sorted above high-priority packages while choosing a provider in commit 2b5c35c7bb915dbd46fefd7c79f05364ba22f93b from Nov 2011
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 6a3e9bfc4..5ca0c2ea5 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -1004,7 +1004,7 @@ struct CompareProviders {
}
// higher priority seems like a good idea
if (AV->Priority != BV->Priority)
- return AV->Priority < BV->Priority;
+ return AV->Priority > BV->Priority;
// prefer native architecture
if (strcmp(A.Arch(), B.Arch()) != 0)
{