summaryrefslogtreecommitdiff
path: root/doc/PROGRAMMING
diff options
context:
space:
mode:
Diffstat (limited to 'doc/PROGRAMMING')
-rw-r--r--doc/PROGRAMMING3
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()