From: Julian Andres Klode Date: Wed, 12 Aug 2015 18:46:00 +0000 (+0200) Subject: apt_preferences(5): Re-document how priorities are calculated X-Git-Tag: 1.1.exp9~52 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/85b9b32933eaeda6119d7a0224b5070ab8230c6b?hp=809aa216c630f1cc61b0c3b9d992d4a3be14be3c apt_preferences(5): Re-document how priorities are calculated The old text did not match either the old or the new implementation, so let's rewrite it to explain the new implementation. Closes: #554773 --- diff --git a/doc/apt_preferences.5.xml b/doc/apt_preferences.5.xml index 5703203b0..81e0bd220 100644 --- a/doc/apt_preferences.5.xml +++ b/doc/apt_preferences.5.xml @@ -346,11 +346,14 @@ only if there is no installed version of the package -If any specific-form records match an available package version then the -first such record determines the priority of the package version. -Failing that, -if any general-form records match an available package version then the -first such record determines the priority of the package version. + +The first specific-form record matching an available package version determines +the priority of the package version. +Failing that, the priority of the package is defined as the maximum of all +priorities defined by generic-form records matching the version. +Records defined using patterns in the Pin field other than "*" are treated like +specific-form records. + For example, suppose the APT preferences file contains the three records presented earlier: