From 1a0d3d92924d05f5074cb58aa635268aa7d9d17c Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Sun, 6 Jan 2008 18:54:42 +0100 Subject: [PATCH] Update deb-control(5) to explain better ordering of postinst/prerm * man/deb-control.5: Explain better the ordering of call of postinst/prerm during installations and removal between a package and its dependencies. --- debian/changelog | 3 +++ man/ChangeLog | 6 ++++++ man/deb-control.5 | 9 +++++---- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 46dfcc9b..df3aaa0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,9 @@ dpkg (1.14.15) UNRELEASED; urgency=low instead of #DEPRECATED, it's clearer for people. * Fix Dpkg::Shlibs::Objdump to properly take into account R_*_COPY relocations. Closes: #454036 + * Explain better the order in which postinst/prerm scripts are called + between a package and its dependencies. Thanks to Nicolas François and + Helge Kreutzmann for their suggestions. Closes: #379641 [ Guillem Jover ] * Move compression related variables to a new Dpkg::Compression module. diff --git a/man/ChangeLog b/man/ChangeLog index 76f7fab4..b88a935f 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,9 @@ +2008-01-06 Raphael Hertzog + + * deb-control.5: Explain better the ordering of call of + postinst/prerm during installations and removal between a package + and its dependencies. + 2008-01-03 Guillem Jover * dpkg-buildpackage.1: Document new -j behaviour. diff --git a/man/deb-control.5 b/man/deb-control.5 index 185128db..5583abd3 100644 --- a/man/deb-control.5 +++ b/man/deb-control.5 @@ -107,10 +107,11 @@ List of packages that are required for this package to provide a non-trivial amount of functionality. The package maintenance software will not allow a package to be installed if the packages listed in its .B Depends -field aren't installed (at least not without using the force options), -and will run the postinst scripts of packages listed in Depends: fields -before those of the packages which depend on them, and run prerm scripts -before. +field aren't installed (at least not without using the force options). +In an installation, the postinst scripts of packages listed in Depends: +fields are run before those of the packages which depend on them. On the +opposite, in a removal, the prerm script of a package is run before +those of the packages listed in its Depends: field. .TP .BR Pre-Depends: " " List of packages that must be installed -- 2.39.5