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
166 stars 14 forks source link

eix-remote update needs to fail if not run as root. #115

Closed Sneethe closed 11 months ago

Sneethe commented 11 months ago

If your first time ever running eix-remote update is without it being run as root. then eix makes /var/cache/eix/remote.eix and /var/cache/eix/remote.tar.bz2 with the user and user group having ownership instead of portage.
This causes permission problems:

cp: cannot create regular file '/var/cache/eix/remote.tar.bz2': Permission denied
 * cannot copy temporary file to /var/cache/eix/remote.tar.bz2
eix-remote: Failure * Something went wrong with eix-remote fetch1
vaeth commented 11 months ago

There can be many reason why a user might want to do this intentionally: You might always want to run it as user, or you might want to configure eix that it drops permissions to that user if run as root (instead of dropping to portage:portage). This is a user decision, and I do not want that eix attempts to be smarter than the user. -> WONTFIX.