Procházet zdrojové kódy

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.
Raphael Hertzog před 18 roky
rodič
revize
1a0d3d9292
3 změnil soubory, kde provedl 14 přidání a 4 odebrání
  1. 3 0
      debian/changelog
  2. 6 0
      man/ChangeLog
  3. 5 4
      man/deb-control.5

+ 3 - 0
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.

+ 6 - 0
man/ChangeLog

@@ -1,3 +1,9 @@
+2008-01-06  Raphael Hertzog  <hertzog@debian.org>
+
+	* 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  <guillem@debian.org>
 
 	* dpkg-buildpackage.1: Document new -j behaviour.

+ 5 - 4
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: " <package list>"
 List of packages that must be installed