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

fix: CachyOS downloads #1483

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Conversation

TuxVinyards
Copy link
Contributor

@TuxVinyards TuxVinyards commented Oct 17, 2024

Updates to new cdn

fixes empty elements in urls eg. https://mirror.cachyos.org/ISO/kde///cachyos-kde-linux-.iso

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my code
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

only two versions now - updates to new cdn setup

current fails on on kde although muddles through on on transition reroutes on other two, for now.
TuxVinyards added a commit to TuxVinyards/qqX that referenced this pull request Oct 17, 2024
Copy link
Contributor

@philclifford philclifford left a comment

Choose a reason for hiding this comment

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

Some suggested tweaks and please removed unused empty local $ISO and operations thereon.

quickget Outdated
echo "${URL}/${REL}/${ISO} ${HASH}"
local URL=""
local ISO=""
URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep "ISO/${EDITION}" | cut -d';' -f2)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep "ISO/${EDITION}" | cut -d';' -f2)"
URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep -o -E "https://[[:alnum:]]+\.cachyos\.org/ISO/${EDITION}/[[:digit:]]+/.*\.iso" )"

quickget Outdated
local URL=""
local ISO=""
URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep "ISO/${EDITION}" | cut -d';' -f2)"
ISO="$(basename "${ISO}")"
Copy link
Contributor

Choose a reason for hiding this comment

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

${ISO} at this point == "" and is local and not used anymore ...

quickget Outdated Show resolved Hide resolved
quickget Outdated Show resolved Hide resolved
legacy from previous that somehow got left in ....
There are  only two  links visible on a web scrape.   The others with similar names are embedded in .js menus.

Add a filter for these other similarities in case, in the future, the other links become visible.

Other filters like ensuring there are digits in the file name could cause future breakage if the format or format sequence became changed.
@philclifford philclifford merged commit 3de28e1 into quickemu-project:master Oct 18, 2024
5 checks passed
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