|author||Joey Hess <email@example.com>||2010-03-01 16:05:49 -0500|
|committer||Joey Hess <firstname.lastname@example.org>||2010-03-01 16:05:49 -0500|
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 (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).