diff options
author | Niels Thykier <niels@thykier.net> | 2015-12-23 08:12:38 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-12-23 08:14:12 +0000 |
commit | 776cf8d5fd106c851f9156ffcfebe88cc7d3f51c (patch) | |
tree | 25df12fc0270d3b1ab6cea283de178aaf8cef291 /doc | |
parent | 61df6eb53302cadf11c1e0aa87b2ff0af207da2f (diff) | |
download | debhelper-776cf8d5fd106c851f9156ffcfebe88cc7d3f51c.tar.gz |
getpackages: Restore behaviour of omitting $type parameter
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/PROGRAMMING | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING index 6c6e027d..e5b9a726 100644 --- a/doc/PROGRAMMING +++ b/doc/PROGRAMMING @@ -269,10 +269,11 @@ is_udeb($package) 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 + -independent. If $type is omitted, returns all packages (including packages that are not built for this architecture). Pass "both" to get the union of "arch" and "indep" packages. + Note that "both" is *not* the same omitting the $type parameter. As a side effect, populates %package_arches and %package_types with the types of all packages (not only those returned). get_source_date_epoch() |