summaryrefslogtreecommitdiff
path: root/doc/PROGRAMMING
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-03-01 16:05:49 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-03-01 16:05:49 -0500
commitfb55603c56612e70d28efa5996f63ad00a3eeb2a (patch)
tree6d7d6440a9cd76b66b580a3c1e404cc6bb4b86fd /doc/PROGRAMMING
parent66c0289440285c22fd099c16bc821251bde73a00 (diff)
If neither -a or -i are specified, debhelper commands used to default to acting on all packages in the control file, which was a guaranteed failure if the control file listed packages that did not build for the target architecture. After recent optimisations, this default behavior can efficiently be changed to the more sane default of acting on only packages that can be built for the current architecture. This change is mostly useful when using minimal rules files with dh. Closes: #572077
Diffstat (limited to 'doc/PROGRAMMING')
-rw-r--r--doc/PROGRAMMING4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index ca76b9c9..b6d3d16e 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -235,7 +235,9 @@ getpackages($type)
Returns a list of packages in the control file.
Pass "arch" or "indep" to specify arch-dependent or
-independent. If nothing is specified, returns all
- packages.
+ packages (including packages that are not built
+ for this architecture). Pass "both" to get the union
+ of "arch" and "indep" packages.
As a side effect, populates %package_arches and %package_types with
the types of all packages (not only those returned).
inhibit_log()