path: root/doc
diff options
authorJoey Hess <>2010-03-01 16:05:49 -0500
committerJoey Hess <>2010-03-01 16:05:49 -0500
commitfb55603c56612e70d28efa5996f63ad00a3eeb2a (patch)
tree6d7d6440a9cd76b66b580a3c1e404cc6bb4b86fd /doc
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')
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index ca76b9c..b6d3d16 100644
@@ -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).