[pacman-dev] [PATCH 4/4] use pacman-conf in scripts

Allan McRae allan at archlinux.org
Sat Jan 13 23:34:52 UTC 2018


On 14/01/18 09:21, Eli Schwartz wrote:
> On 01/13/2018 11:50 AM, Andrew Gregory wrote:
>> Because parsing pacman.conf is so difficult that even we can't do it
>> right.
>>
>> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
>> ---
>>  scripts/completion/zsh_completion.in |  4 ++--
>>  scripts/pacman-db-upgrade.sh.in      | 21 ++-------------------
>>  scripts/pacman-key.sh.in             |  2 +-
>>  3 files changed, 5 insertions(+), 22 deletions(-)
> 
> Our bash completion should also be updated to use pacman-conf, as
> currently it uses a glorious hack to find the completions for -Sl which
> involves verbosely printing all packages ever and using `cut|sort -u` to
> extract repo names and dedupe them.
> 

patches welcome.


More information about the pacman-dev mailing list