Przeglądaj źródła

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
Julian Andres Klode 11 lat temu
rodzic
commit
85b9b32933
1 zmienionych plików z 8 dodań i 5 usunięć
  1. 8 5
      doc/apt_preferences.5.xml

+ 8 - 5
doc/apt_preferences.5.xml

@@ -346,11 +346,14 @@ only if there is no installed version of the package</simpara></listitem>
 </variablelist>
 </para>
 
-<para>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.</para>
+<para>
+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.
+</para>
 
 <para>For example, suppose the APT preferences file contains the three
 records presented earlier:</para>