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

make the chroot_to_dist method more generic #469

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented May 23, 2024

this means we do not have to add entries for new versions, just for new
distributions or families

version = chroot_parts[-2].replace('.', '')
os = chroot_parts[0..-3].join('-')
Copy link
Member

Choose a reason for hiding this comment

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

My brain prefers this the other way around so you first take the beginning of the string and then the end.

Suggested change
version = chroot_parts[-2].replace('.', '')
os = chroot_parts[0..-3].join('-')
os = chroot_parts[0..-3].join('-')
version = chroot_parts[-2].replace('.', '')

Copy link
Member Author

Choose a reason for hiding this comment

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

your brain is weird :P

Copy link
Member

Choose a reason for hiding this comment

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

Tell me something I don't know ;)

this means we do not have to add entries for new versions, just for new
distributions or families
@evgeni evgeni enabled auto-merge (rebase) May 23, 2024 09:00
@evgeni evgeni merged commit 82feb19 into master May 23, 2024
2 checks passed
@evgeni evgeni deleted the generic-dist-map branch May 23, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants