From: Russ Allbery Date: Sun, 27 Jun 2010 18:21:28 +0000 (-0700) Subject: Merge branch 'master' into bug504880-rra X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=886ef588bd233de4b482cbe1173aefb5a93f77b8;p=debian%2Fdebian-policy.git Merge branch 'master' into bug504880-rra Conflicts: policy.sgml --- 886ef588bd233de4b482cbe1173aefb5a93f77b8 diff --cc policy.sgml index 8c51a61,d489738..57ff067 --- a/policy.sgml +++ b/policy.sgml @@@ -4671,22 -4674,25 +4684,25 @@@ Build-Depends: foo [linux-any], bar [an

When one binary package declares a conflict with another using a Conflicts field, dpkg will - refuse to allow them to be installed on the system at the + refuse to allow them to be unpacked on the system at the - same time. + same time. This is a stronger restriction than Breaks, + which just prevents both packages from being configured at the + same time. Conflicting packages cannot be unpacked on the + system at the same time.

- If one package is to be installed, the other must be removed - first. If the package being installed is marked as replacing + If one package is to be unpacked, the other must be removed - first - if the package being unpacked is marked as - replacing (see ) the one on the system, - or the one on the system is marked as deselected, or both - packages are marked Essential, then - dpkg will automatically remove the package - which is causing the conflict, otherwise it will halt the - installation of the new package with an error. This - mechanism is specifically designed to produce an error when - the installed package is Essential, but the new - package is not. ++ first. If the package being unpacked is marked as replacing + (see , but note that Breaks should + normally be used in this case) the one on the system, or the one + on the system is marked as deselected, or both packages are + marked Essential, then dpkg will + automatically remove the package which is causing the conflict. + Otherwise, it will halt the installation of the new package with + an error. This mechanism is specifically designed to produce an + error when the installed package is Essential, but the + new package is not.

@@@ -4885,8 -4956,9 +4966,9 @@@ Provides: mail-transport-agen Conflicts: mail-transport-agent Replaces: mail-transport-agent - ensuring that only one MTA can be installed at any one + ensuring that only one MTA can be unpacked at any one - time. + time. See for more information about this + example.