Parcourir la source

dpkg-maintscript-helper(1): Improve symlink<->directory switch information

Document that downgrades are not supported, and clarify how to set
prior-version.

Closes: #739388
Guillem Jover il y a 12 ans
Parent
commit
f4998f8436
2 fichiers modifiés avec 15 ajouts et 8 suppressions
  1. 2 0
      debian/changelog
  2. 13 8
      man/dpkg-maintscript-helper.1

+ 2 - 0
debian/changelog

@@ -8,6 +8,8 @@ dpkg (1.17.7) UNRELEASED; urgency=low
     - Clarify in dpkg-buildpackage(1) --check-option description.
     - Clarify in dpkg-buildpackage(1) --check-option description.
     - Document dpkg-query --control-path life expectancy. See: #699647
     - Document dpkg-query --control-path life expectancy. See: #699647
     - Fix indentation of “Extract options (with -x)” title in dpkg-source(1).
     - Fix indentation of “Extract options (with -x)” title in dpkg-source(1).
+    - Improve symlink <-> directory switch information in
+      dpkg-maintscript-helper(1). Closes: #739388
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * German (Sven Joachim).
   * German (Sven Joachim).

+ 13 - 8
man/dpkg-maintscript-helper.1

@@ -15,7 +15,7 @@
 .\" You should have received a copy of the GNU General Public License
 .\" You should have received a copy of the GNU General Public License
 .\" along with this program.  If not, see <https://www.gnu.org/licenses/>.
 .\" along with this program.  If not, see <https://www.gnu.org/licenses/>.
 .
 .
-.TH dpkg\-maintscript\-helper 1 "2013-12-11" "Debian Project" "dpkg suite"
+.TH dpkg\-maintscript\-helper 1 "2014-04-01" "Debian Project" "dpkg suite"
 .SH NAME
 .SH NAME
 dpkg\-maintscript\-helper \- works around known dpkg limitations in maintainer scripts
 dpkg\-maintscript\-helper \- works around known dpkg limitations in maintainer scripts
 .
 .
@@ -56,16 +56,20 @@ package with a local version. If \fIprior-version\fP is empty or omitted,
 then the operation is tried on every upgrade (note: it's safer to give
 then the operation is tried on every upgrade (note: it's safer to give
 the version and have the operation tried only once).
 the version and have the operation tried only once).
 
 
-For example, for a conffile removed in version \fB2.0\-1\fP of a package,
-\fIprior-version\fP should be set to \fB2.0\-1~\fP. This will cause the
-conffile to be removed even if the user rebuilt the previous version
-\fB1.0\-1\fP as \fB1.0\-1local1\fP.
-
 If the conffile has not been shipped for several versions, and you are
 If the conffile has not been shipped for several versions, and you are
 now modifying the maintainer scripts to clean up the obsolete file,
 now modifying the maintainer scripts to clean up the obsolete file,
 \fIprior-version\fP should be based on the version of the package that
 \fIprior-version\fP should be based on the version of the package that
 you are now preparing, not the first version of the package that lacked
 you are now preparing, not the first version of the package that lacked
-the conffile.
+the conffile. This applies to all other actions in the same way.
+
+For example, for a conffile removed in version \fB2.0\-1\fP of a package,
+\fIprior-version\fP should be set to \fB2.0\-1~\fP. This will cause the
+conffile to be removed even if the user rebuilt the previous version
+\fB1.0\-1\fP as \fB1.0\-1local1\fP. Or a package switching a path from
+a symlink (shipped in version \fB1.0\-1\fP) to a directory (shipped in
+version \fB2.0\-1\fP), but only performing the actual switch in the
+maintainer scripts in version \fB3.0\-1\fP, should set \fIprior-version\fP
+to \fB3.0\-1~\fP.
 .TP
 .TP
 .I package
 .I package
 The package name. When the package is "Multi-Arch: same", this parameter
 The package name. When the package is "Multi-Arch: same", this parameter
@@ -145,7 +149,8 @@ abort\-upgrade/abort\-install, the \fBpostrm\fP renames
 .SH SYMLINK AND DIRECTORY SWITCHES
 .SH SYMLINK AND DIRECTORY SWITCHES
 .
 .
 When upgrading a package, \fBdpkg\fP will not automatically switch a symlink
 When upgrading a package, \fBdpkg\fP will not automatically switch a symlink
-to a directory or vice-versa.
+to a directory or vice-versa. Downgrades are not suppoerted and the path
+will be left as is.
 .
 .
 .SS Switching a symlink to directory
 .SS Switching a symlink to directory
 .
 .