Skip to content

fix parsing of atoms - #248

Merged
nicolasbock merged 1 commit into
nicolasbock:mainfrom
stkw0:fix-bug-atoms
Jan 20, 2026
Merged

nicolasbock merged 1 commit into
nicolasbock:mainfrom
stkw0:fix-bug-atoms

Conversation

@stkw0

@stkw0 stkw0 commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

Previously atoms like category/a-long-name were parsed in such a way that "name" was taken as the version.
This commit also changes the behavior to not parse any version if the atom doesn't starts with "=" sign.
The revision is not needed when it's r0 but it's unconditionally appended when a version is parsed.

@stkw0
stkw0 requested a review from nicolasbock as a code owner August 22, 2025 11:17
Previously atoms like category/a-long-name were parsed in such a way
that "name" was taken as the version
@kuraga

kuraga commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Isn't there a "standard" Gentoo library for this?

@stkw0

stkw0 commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator Author

Yes, but at some point it was said ebuildtester should be compatible with other distros other than Gentoo

@stkw0

stkw0 commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator Author

@nicolasbock could you take a look? I think having this bug fixed with help with the user experience

@nicolasbock nicolasbock left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@nicolasbock
nicolasbock merged commit b203956 into nicolasbock:main Jan 20, 2026
7 checks passed
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