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

package.erb: Fix links to repository URL #1344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

z3ntu
Copy link
Contributor

@z3ntu z3ntu commented May 23, 2023

Currently some instructions like openSUSE or Debian link to e.g. /repositories/hardware:razer/ instead of /repositories/hardware:/razer/ with an extra slash but the version without the extra slash return HTTP 404 and therefore don't work.

Make sure to add the path fixup everywhere where the v[:repo] variable is used.

Fixes #1142
Fixes #1273


  • I've included before / after screenshots or did not change the UI

Please note that I didn't test this change since I don't have the dev environment set up and this should be quite easy to validate for someone who has. Issue also seen on https://software.opensuse.org/download.html?project=hardware%3Arazer&package=polychromatic with "openSUSE Tumbleweed" or https://software.opensuse.org/download.html?project=hardware%3Arazer&package=razergenie with "Debian Unstable" the line with Release.key

Currently some instructions like openSUSE or Debian link to e.g.
/repositories/hardware:razer/ instead of /repositories/hardware:/razer/
with an extra slash but the version without the extra slash return HTTP
404 and therefore don't work.

Make sure to add the path fixup everywhere where the v[:repo] variable
is used.

Fixes openSUSE#1142
Fixes openSUSE#1273
@z3ntu
Copy link
Contributor Author

z3ntu commented May 27, 2023

Apparently e.g. https://download.opensuse.org/repositories/hardware:razer/ now has (again?) a redirect to the path with slashes. But still for consistency having this PR would be good.

@FWDekker
Copy link

I think this PR is now redundant since the issue is no longer there. The URLs have not changed, it looks like the link no longer 404s. Probably a back-end change?

@z3ntu
Copy link
Contributor Author

z3ntu commented Nov 27, 2023

In any case for consistency it's good to use the same URL template for the repos, but yes as I wrote in the comment before something changed on the download.opensuse.org side that both paths work again, but I'm not confident it won't break again at some point in the future.

Maintenance of these repos is also a bit, well, lackluster.

@z3ntu
Copy link
Contributor Author

z3ntu commented Nov 27, 2023

@hennevogel review please

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.

URL to Debian Release.key is wrong Broken link
2 participants