[pacman-dev] [PATCH 2/2] Append '-$arch' to 'installed' array in .BUILDINFO
eschwartz at archlinux.org
Sun Mar 18 01:19:57 UTC 2018
On 03/17/2018 05:24 PM, Robin Broda wrote:
> This patch incurs a **severe** performance degradation when generating
> the .BUILDINFO file, likely due to frequent usage of `pacman -Qi`
> and `grep -E`. I haven't found a faster way to gather this information.
I'm not sure we can, without adding a dependency on e.g. expac. Which
would admittedly be a lot cleaner and we could also remove the existing
The downside is depending on a pretty specific tool. The plus side is
ensuring that everyone has a pretty cool tool installed by default...
pacman itself does not really give output meant for parsing.
The alternative, reproduction-wise, is of course to brute force by
trying to access both "x86_64" and "any" (it would suffice to check the
return code of curl -IfLls -o /dev/null $url). I don't think this is a
terrible option, unless Allan is willing to accept expac-based patches...
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the pacman-dev