Просмотр исходного кода

man: Document that dpkg sets DPKG_ADMINDIR on maintainer scripts environment

Guillem Jover лет назад: 9
Родитель
Сommit
49b71bcfc8
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      debian/changelog
  2. 5 0
      man/dpkg.man

+ 1 - 0
debian/changelog

@@ -11,6 +11,7 @@ dpkg (1.18.17) UNRELEASED; urgency=medium
   * Documentation:
   * Documentation:
     - Clarify that dpkg-buildpackage does not run «dpkg-source --before-build»
     - Clarify that dpkg-buildpackage does not run «dpkg-source --before-build»
       when using the -T option. Closes: #649531
       when using the -T option. Closes: #649531
+    - Document that dpkg sets DPKG_ADMINDIR on maintainer script environment.
   * Packaging:
   * Packaging:
     - Do not let dh_perl insert a dependency for libdpkg-perl, because it
     - Do not let dh_perl insert a dependency for libdpkg-perl, because it
       emits perl instead of perl:any. Instead hardcode a perl:any dependency
       emits perl instead of perl:any. Instead hardcode a perl:any dependency

+ 5 - 0
man/dpkg.man

@@ -902,6 +902,11 @@ this variable empty, but if \fB\-\-force\-script\-chrootless\fP is
 specified then the \fBchroot\fP(2) call is skipped and \fBinstdir\fP
 specified then the \fBchroot\fP(2) call is skipped and \fBinstdir\fP
 is non-empty.
 is non-empty.
 .TP
 .TP
+.B DPKG_ADMINDIR
+Defined by \fBdpkg\fP on the maintainer script environment to indicate
+the \fBdpkg\fP administrative directory to use (since dpkg 1.16.0).
+This variable is always set to the current \fB\-\-admindir\fP value.
+.TP
 .B DPKG_SHELL_REASON
 .B DPKG_SHELL_REASON
 Defined by \fBdpkg\fP on the shell spawned on the conffile prompt to
 Defined by \fBdpkg\fP on the shell spawned on the conffile prompt to
 examine the situation (since dpkg 1.15.6).
 examine the situation (since dpkg 1.15.6).