diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-05 23:18:12 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-05 23:25:52 (EDT) |
commit | 984ec34f0ab73a8558ad417db3b1f9651029a46f (patch) | |
tree | 6c88a9d25ad2f6e221d36a43200e50db384d7910 /NEWS | |
parent | a53880a6e630d05c72a2a9b32f748d92cd13d973 (diff) |
ob_get_binary_packages(): Factor out side effects
As described in the documentation, it was only pure after being called
once outside a subshell, but it was never actually called outside a
subshell. So it rescanned the file system for binary packages every
time.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -41,6 +41,8 @@ Utilities: * Source package names are now prefixed with "src:" instead of "src-". pro-archman has supported this in its package name hashing since version 2.0.0. + * With ob_get_binary_packages() becoming always pure (see below), all + utilities now scan the file system for binary packages only once. libopkbuild: @@ -52,6 +54,10 @@ libopkbuild: correctly. * New functions ob_validate_section() and ob_qualify_package_name() have been added. + * ob_get_binary_packages() is now always pure (without side effects + that would preclude use in a subshell environment). Side effects + have been factored out into a new internal function called by + ob_init_package(). opkbuild version 4.1.4 ---------------------- |