vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
421 stars 38 forks source link

[Feature request] Add the ability to use a separate pacman.conf #214

Open Am0g-us opened 11 months ago

Am0g-us commented 11 months ago

This feature will be useful for those who use distributions like cachyos, where some aur packages are built with a version higher than in aur (e.g. zfs-utils-2.1.12-2 in cachyos and zfs-utils-2.1.12-1 in aur), which causes pacman to update them from the cachyos repository, which can be a problem if the user's processor supports x86_64v4. So I suggest to add the ability to set the list of ignored packages in a separate file or a separate pacman.conf.

vn971 commented 11 months ago

Hi @Am0g-us, if you're talking about rua upgrade, would an --ignore flag work for your use case?

rua upgrade --help
...
...
OPTIONS:
        --ignore <ignored>    Don't upgrade the specified package(s). Accepts multiple arguments separated by `,`.
Am0g-us commented 11 months ago

No. Just the opposite. Add the ability to update packages by ignoring IgnorePkg in pacman.conf. I think it is best to add a separate pacman.conf in ~/.config/rua/.system/

vn971 commented 11 months ago

@Am0g-us I've taken a look. If you add a CLI option to specify an alternative pacman.conf location (Option<Path>) and use this value when calling pacman-conf (pacman.rs:13), I'll merge this in. Otherwise, I might return to it a bit later when I have more time (or anyone else interested in the feature can)

vn971 commented 11 months ago

I've also added a good first issue label now (because it is an easy/good first issue)