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

Add Pop!_OS as a variant reported by the lsb_release parsing code. #173

Merged
merged 26 commits into from
May 19, 2020
Merged

Conversation

zacbrown
Copy link
Contributor

This change adds Pop!_OS, an Ubuntu variant that reports a distinct lsb_release -a output:

No LSB modules are available.
Distributor ID:	Pop
Description:	Pop!_OS 20.04 LTS
Release:	20.04
Codename:	focal

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
…ue variant to make it not specific to Oracle Linux.

- Use lifetime'ed &str instead of creating a String object unnecessarily for parsing out the version using Matcher::KeyValue.
- Simplify some Option::map calls to pass the fully qualified function to apply to the Option types.

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
Copy link
Owner

@stanislav-tkach stanislav-tkach left a comment

Choose a reason for hiding this comment

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

Thanks!

@stanislav-tkach stanislav-tkach merged commit d42df17 into stanislav-tkach:master May 19, 2020
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.

2 participants