summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:17:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:17:26 +0000
commit36b03e2bee4497aef85033f4f900f5d89d5dc55e (patch)
treeec9a0e0972bd08cc628efaa53161b44f9361dd37 /doc
parentAdding debian version 13.16. (diff)
downloaddebhelper-36b03e2bee4497aef85033f4f900f5d89d5dc55e.tar.xz
debhelper-36b03e2bee4497aef85033f4f900f5d89d5dc55e.zip
Merging upstream version 13.17.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/PROGRAMMING.md19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/PROGRAMMING.md b/doc/PROGRAMMING.md
index 56a3c50..b49ce4d 100644
--- a/doc/PROGRAMMING.md
+++ b/doc/PROGRAMMING.md
@@ -209,7 +209,7 @@ The following keys are also set in the `%dh` hash when you call `init()`:
is less than or equal to that number, it will return true.
Looks at `DH_COMPAT` to get the compatibility level.
-- `pkgfile($package, $basename)`
+- `pkgfile([$opts,] $package, $basename)`
Pass this command the name of a binary package, and the base name of a
file, and it will return the actual filename to use. This is used
@@ -220,6 +220,23 @@ The following keys are also set in the `%dh` hash when you call `init()`:
is also allowable for the `$dh{MAINPACKAGE}`. If the file does not
exist, nothing is returned.
+ Since debhelper/13.17, if the first argument is a hashref, it is taken
+ to be configuration parameter (`$opts`). This hashref can have the
+ following keys:
+
+ * `named`: If set to a truth value, the `pkgfile` can have a `name`
+ segment. This is only useful if it ever makes sense to have multiple
+ files for the same package. This ties to the `--name` parameter
+ for the lookup though `--name` can still be used when this is set
+ to `false`. The default is `false` at compat 14+ and `true` for
+ earlier compat levels.
+
+ * `support-architecture-restriction`: When set to a truth value,
+ the `pkgfile` can have an architecture restriction. The is only
+ useful if the contents can reasonably be architecture specific.
+ The default is `false` at compat 14+ and `true` for earlier
+ compat levels.
+
If the *entire* behavior of a command, when run without any special
options, is determined by the existence of 1 or more pkgfiles,
or by the existence of a file or directory in a location in the