Bläddra i källkod

man: Improve dpkg-maintscript-helper pkgname argument documentation

Clarify how the package name gets generated when empty or omitted, and
when it sould be arch-qualified or not depending on whether the package
is Multi-Arch:same.

Closes: #776072
Guillem Jover 11 år sedan
förälder
incheckning
9d70c7a658
2 ändrade filer med 10 tillägg och 4 borttagningar
  1. 2 0
      debian/changelog
  2. 8 4
      man/dpkg-maintscript-helper.1

+ 2 - 0
debian/changelog

@@ -7,6 +7,8 @@ dpkg (1.18.0) UNRELEASED; urgency=low
   * Document the version when dpkg-deb --raw-extract got introduced.
   * Document dpkg --log format, add missing actions and describe the startup
     messages. Closes: #773398
+  * Document when and how the dpkg-maintscript-helper package name argument
+    is or should be arch-qualified. Closes: #776072
 
  -- Guillem Jover <guillem@debian.org>  Tue, 09 Dec 2014 23:53:18 +0100
 

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

@@ -75,10 +75,14 @@ maintainer scripts in version \fB3.0\-1\fP, should set \fIprior-version\fP
 to \fB3.0\-1~\fP.
 .TP
 .I package
-The package name. When the package is "Multi-Arch: same", this parameter
-must include the architecture qualifier. If empty or omitted, the
-\fBDPKG_MAINTSCRIPT_PACKAGE\fP environment variable (as set by
-\fBdpkg\fP) will be used.
+The package name. When the package is "Multi-Arch: same" this parameter
+must include the architecture qualifier, otherwise it should \fBnot\fP
+usually include the architecture qualifier (as it would disallow
+cross-grades, or switching from being architecture specific to
+architecture \fBall\fP or vice versa).
+If the parameter is empty or omitted, the \fBDPKG_MAINTSCRIPT_PACKAGE\fP
+and \fBDPKG_MAINTSCRIPT_ARCH\fP environment variables (as set by \fBdpkg\fP)
+will be used to generate an arch-qualified package name.
 .TP
 .B \-\-
 All the parameters of the maintainer scripts have to be forwarded to the