After removing yaourt and package-query, upgrading pacman to v4.0.1 and reinstalling the latest package-query and yaourt from AUR, I can't use yaourt anymore. It tells me:
Unable to open file: /usr/local/etc/pacman.conf
I don't understand why it's looking there now and not in /etc. Meanwhile pacman is working normally. If I create a symlink to pacman.conf, I get the following error instead:
failed to initialize alpm library (could not find or read directory)
My $PATH is:
I have tried looking in the yaourt PKGBUILD prior to installing, reinstalling it, looking in the yaourt script file, and I can't find anything suspicious. Not sure what to look for, what could have happened?
EDIT: Found the solution: /usr/bin needs to be before /usr/local/bin in $PATH.