vaeth / eix

eix can access Gentoo portage ebuild information and description very quickly (using a local cache). It can also be used to access information on installed packages, local settings, and local and external overlays, and informs about changes in the tree
GNU General Public License v2.0
164 stars 13 forks source link

eix --upgrade shows masked package version #84

Closed r4rdsn closed 3 years ago

r4rdsn commented 3 years ago

I don't want to update =games-action/multimc-0.6.11 from guru overlay so I put this atom in /etc/portage/package.accept_keywords.

/etc/portage$ grep -R games-action/multimc
package.accept_keywords/zz-autounmask:=games-action/multimc-0.6.11

Portage diligently doesn't update it:

/etc/portage$ doas emerge -auDN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Nothing to merge; quitting.

But eix shows upgrade to 0.6.12:

/etc/portage$ eix --upgrade --world
[?] games-action/multimc [1]
     Available versions:  ~0.6.12
     Installed versions:  0.6.11(06:24:34 PM 01/31/2021)
     Homepage:            https://multimc.org https://github.com/MultiMC/MultiMC5
     Description:         An advanced Qt5-based open-source launcher for Minecraft

[1] "guru" /var/db/repos/guru

I tried to add >games-action/multimc-0.6.11 to /etc/portage/package.mask with no luck. How do I remove multimc from list of upgrades?

vaeth commented 3 years ago

[?] games-action/multimc

It is not an upgrade, but a downgrade. Actually it is a broken state: There is no installable version, although you have some installed.

The solution is to fix the state by making sure that the installed version is available. (For instance, put the ebuild in your local overlay and call eix-update afterwards.)