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

Use removeprefix/removesuffix instead of incorrect lstrip/rstrip calls #3109

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

correctmost
Copy link
Contributor

PR Description:

This PR should fix the URL issue mentioned in #3013

@svartkanin
Copy link
Collaborator

Does this fix the url? I did address it in the mirrorlist parsing PR in the server url function https://github.com/archlinux/archinstall/pull/3104/files#diff-3dfabed340ddd155e3952a2337b2d99f4bf4f47c8c7fd5f30b01b5f9c68c263bR41

@svartkanin svartkanin merged commit 4212357 into archlinux:master Jan 12, 2025
8 checks passed
@correctmost correctmost deleted the cm/fix-strip-calls branch January 12, 2025 00:55
@correctmost
Copy link
Contributor Author

Does this fix the url? I did address it in the mirrorlist parsing PR in the server url function https://github.com/archlinux/archinstall/pull/3104/files#diff-3dfabed340ddd155e3952a2337b2d99f4bf4f47c8c7fd5f30b01b5f9c68c263bR41

Before this PR landed, we would get broken URLs like "https://us.arch.niranjan.$repo/os/$arch" because rstrip would also strip the "co/" TLD characters from the string.

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