From: Russ Allbery Date: Sat, 12 Jun 2010 18:39:42 +0000 (-0700) Subject: Add an example of Replaces for a package split X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fbdcb33c369704af4dfa7b8812c3f566ef631c38;p=debian%2Fdebian-policy.git Add an example of Replaces for a package split * Add an example for Replaces when a package is split. Thanks, Uwe Kleine-König. (Closes: #572253) --- diff --git a/debian/changelog b/debian/changelog index 5cbd885..5bbc225 100644 --- a/debian/changelog +++ b/debian/changelog @@ -90,6 +90,8 @@ debian-policy (3.8.5.0) UNRELEASED; urgency=low traditional foreground and background colors for Process.html and README.html. (Closes: #584521) * Fix typo in footnote about help2man. (Closes: #584796) + * Add an example for Replaces when a package is split. Thanks, Uwe + Kleine-König. (Closes: #572253) -- Bill Allombert Mon, 31 May 2010 20:00:28 +0200 diff --git a/policy.sgml b/policy.sgml index 02d6f8d..da3a687 100644 --- a/policy.sgml +++ b/policy.sgml @@ -4743,6 +4743,20 @@ Provides: bar will no longer be listed as "owned" by the old package.

+

+ For example, if a package foo is split + into foo and foo-data + starting at version 1.2-3, foo-data should + have the field + +Replaces: foo (<< 1.2-3) + + in its control file. The package foo + doesn't need any special control fields in this example, + although would generally depend on or + recommend foo-data. +

+

If a package is completely replaced in this way, so that dpkg does not know of any files it still