rmarquis / pacaur

[unmaintained] An AUR helper that minimizes user interaction
https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144
ISC License
795 stars 113 forks source link

Pacaur fails to properly source files defined in /etc/pacman.conf #433

Open kingy9000 opened 8 years ago

kingy9000 commented 8 years ago

Pacaur fails to properly source files defined in /etc/pacman.conf via "Include=/path/to/file" as explained in this link: Arch Wiki - Pacman - Maintain several configuration files.

For example, when I define:

[options] Color

in a separate file and source it in /etc/pacman.conf via the method explained above, I can see colors in pacman but fail to see colors in pacaur when using them. When I write that directly in /etc/pacman.conf, by uncommenting the Color option that is already there by default, I see colors both in pacman and pacaur when using them.

Would highly appreciate if this was fixed, thanks for reading.

rmarquis commented 8 years ago

There is no way this could be done efficiently through bash, but using pacconf from pacutils might be just what is needed to solve this issue.

Delaying to pacaur 5.0.

kingy9000 commented 8 years ago

Thanks for your quick response.

After thinking on it, I realized it might be more doable to allow /etc/xdg/pacaur/config or ~/.config/pacaur/config to be able to source files. For example the default pacaur config could source /etc/pacman.conf by default while allowing the user to change it to whatever they want. To me this sounds like an easier solution to implement but could be wrong.

Thanks for reading.

rmarquis commented 8 years ago

The current code doesn't allow an easy workaround for your user case. There will be lot of internal changes in the upcoming major version (v.5.0.0), I'll ensure that included files in pacman.conf are correctly taken into account.

rmarquis commented 8 years ago

Using pacconf will be also useful for removing hardcoded /var/cache/pacman/pkg/ path (see #519).

rmarquis commented 7 years ago

See also the pacman-dev mailing list.

ismaelgv commented 7 years ago

What is your idea to start working with this? Wrapping pacconf as makepkg and cower is wrapped?

Edit: Obviously this will add pacutils as new dependency.

rmarquis commented 7 years ago

I haven't had a close look at this yet. I delayed it to a future version in part because it added a new AUR dependency, but pacutils has been available in the repo for a few months now.