actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
868 stars 87 forks source link

Repository's priority is ignored. #55

Closed naqern closed 6 years ago

naqern commented 6 years ago

Repositories listed on pacman.conf have priorities (see: archwiki)

repositories listed first will take precedence over those listed later in the file when packages in two repositories have identical names, regardless of version number.

I have [testing], [community-testing], [multilib-testing] enabled (but only specific packages are explicitly installed from them). Yet, "pikaur -Syu" for example suggests the very dangerous list of updates (all of them from testing!):

linux 4.15.6-1 -> 4.15.7-1 linux-headers 4.15.6-1 -> 4.15.7-1 linux-zen 4.15.6-1 -> 4.15.7-1 linux-zen-headers 4.15.6-1 -> 4.15.7-1

Different helpers (pacaur, yay, trizen…) are correctly implementing repository priority.

actionless commented 6 years ago

should priority apply only to -Syu or to just -S as well?

naqern commented 6 years ago

Priority is always applied. To install a package from a low priority repository you need to prepend the repository's name:

Install explicitly from a repository: pacman -S testing/linux Install the "official" package: pacman -S linux

actionless commented 6 years ago

thanks, in that case fix should be quite easy, i'll try to address it tonight or so

actionless commented 6 years ago

should be fine now:

$ ./pikaur.py -Ss core/archlinux-keyring
Searching... [###]
core/archlinux-keyring 20180108-1 [installed]
    Arch Linux PGP keyring

$ ./pikaur.py -Ss testing/archlinux-keyring
Searching... [###]
testing/archlinux-keyring 20180302-1 [installed: 20180108-1]
    Arch Linux PGP keyring

$ ./pikaur.py -Ss archlinux-keyring
Searching... [###]
testing/archlinux-keyring 20180302-1 [installed: 20180108-1]
    Arch Linux PGP keyring