Skip to content

[FR] Complain about unreadable portage configs #113

@burunduk3

Description

@burunduk3

It happens so that I had files under /etc/portage/package.accept_keywords with permissions of -rw------- root root. While it wasn't problem for emerging stuff, eix appears to switch to the portage user before reading them. As a result I got tons of confusing complains when, for example, running eix-test-obsolete.

What I expect the tool to give me in such a situation would be a error message in output, something like:

eix-text-obsolete: cannot open /etc/portage/package.accept_keywords/default: Permission denied

so I would easily spot the issue and fix the permissions.

A quick glance into the code shows that this might originate from methods like PortageUserConfig::readKeywords, which call pushback_lines to read the portage config files, but instead of providing errtext to pushback_lines just silently return.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions