Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

author/CD fix, fixes for reliance on category_dirs and that being fundamentally broken in pkgcore #656

Merged
merged 4 commits into from
Jan 24, 2024

Conversation

ferringb
Copy link
Contributor

Rough summary:

There probably should be an explicit check added for if a standalone repository doesn't declare any categories, but that would be a seperate PR.

Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Brian Harring <ferringb@gmail.com>
This is beyond corner case, but if someone has a non directory
in place of where a category is supposed to be, pkgcore and portage
will silently suppress this.

Pkgcore will be modified to emit a warning for this, but in the meantime,
it's a cheap check, thus add it.

Signed-off-by: Brian Harring <ferringb@gmail.com>
pkgcore's `category_dirs` is a fossil that shouldn't be
relied upon.  My recollection is this property was from
before `profiles/categories` existed, but it's just
a listdir() intersection against known directories.
PMS mandates categories be in `profiles/categories`, thus
that functionality breaks compatibility.

It will be removed from pkgcore in future semver breaks
for that reason.

Signed-off-by: Brian Harring <ferringb@gmail.com>
Copy link
Member

@arthurzam arthurzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you.

(sorry if it was me dropping you from authors)

@gentoo-bot gentoo-bot merged commit 2b66a5a into pkgcore:master Jan 24, 2024
9 checks passed
@ferringb
Copy link
Contributor Author

Looks great, thank you.

(sorry if it was me dropping you from authors)

Yeah, I figured it was the pyproject.toml transfer. Shit happens, even if I grumble mildly during it... so no worries ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants