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

Provide distro specific url for help with system-upgrade (RhBug:1747408) #162

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

j-mracek
Copy link
Contributor

@j-mracek j-mracek commented Oct 7, 2019

Os-release will provide the new key with url with help for
system-upgrade.

https://bugzilla.redhat.com/show_bug.cgi?id=1747408

for line in release_file:
line = line.strip()
if line.startswith(key):
return line.lstrip(key + '"').rstrip('"')
Copy link

Choose a reason for hiding this comment

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

Note that lstrip takes a set of characters, not a prefix to be removed.

>>> "DOCUMENTATION_URL=ABC".lstrip('"DOCUMENTATION_URL=')
'BC'

@m-blaha m-blaha merged commit b563858 into rpm-software-management:master Oct 14, 2019
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