26 Jan
2017
26 Jan
'17
3:50 p.m.
pacman -Sl is not suitable for parsing. This breaks on databases with spaces in their name.
I'm aware, and like the bash completion scripts this is not a complete solution as the tools needed to properly inspect pacman's configuration aren't readily available yet. (Excluding pacutils, which itself is not completely sufficient as it doesn't understand what a "repository" is beyond it being a section.) Ultimately both completion scripts will need a bit of reworking eventually. This patch is simply to tide it over until then.