[pacman-dev] [PATCH 02/10] makepkg: Simplify SPLITPKG check
Eli Schwartz
eschwartz at archlinux.org
Thu May 31 21:01:47 UTC 2018
On 05/31/2018 12:24 PM, Jan Alexander Steffens (heftig) wrote:
> This causes package_$pkgname() to be preferred over package() in the
> non-split case, but the behavior if both functions exist was
> undocumented anyway.
We don't document the behavior of arbitrary user-defined functions.
package_$pkgname() is only defined as having meaning in the context of
the PACKAGE SPLITTING section of the documentation.
IMHO this is us documenting that package() is the only correct function
unless ${#pkgname[@]} > 1.
I think it is far more intuitive to behave that way, and I'd actually be
willing to refuse to use package_$pkgname even if it is the only one...
--
Eli Schwartz
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20180531/06e5ccc4/attachment.asc>
More information about the pacman-dev
mailing list