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

fixes for kvarken (rpm HACK 1.2.4.jolla => 1.2.6.jolla, VALID_PRODUCTS in flash.sh) #21

Closed
wants to merge 2 commits into from

Conversation

teleshoes
Copy link
Contributor

primary.xml is just wrong for kvarken i guess? i dont actually know whats failing where, but the rpm versions fetched for kvarken just dont exist.

without this hack, i get the old:
error: open of <html> failed: No such file or directory
(from the rpm cmd, since curl fetches a 404 html error page)

with this hack, i print 3 times:
HACK PKG PATH: oss/armv7hl/augeas-libs-1.12.0+git2-1.2.4.jolla.armv7hl.rpm => oss/armv7hl/augeas-libs-1.12.0+git2-1.2.6.jolla.armv7hl.rpm

@teleshoes teleshoes changed the title HACK for kvarken rpms, 1.2.4.jolla 1.2.6.jolla fixes for kvarken (rpm HACK 1.2.4.jolla => 1.2.6.jolla, VALID_PRODUCTS in flash.sh) Jun 13, 2021
@teleshoes
Copy link
Contributor Author

(image build confirmed working for me on 4.1.0.24, with these fixes)

g7 added a commit that referenced this pull request Jun 14, 2021
…y looking at repomd. Relates to #21

We were assuming that the primary.xml.gz (containing the repository's package list) would
be located at /repodata/primary.tar.gz.
Since 4.1.0.23 at least, Jolla switched to an hashed format (<sha256>-primary.tar.gz), so
we need to obtain the correct file name by looking at the repository metadata.

Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
@g7
Copy link
Owner

g7 commented Jun 14, 2021

Hello!

First of all, thanks for keeping this thing alive :)

I think I found a more future-proof way to handle the missing primary.xml.gz. Apparently, since 4.1.0, Jolla switched to an "hashed" filename (<sha256 of the file>-primary.tar.gz) so probably the primary.xml.gz file the script was getting was a leftover from 4.0 or so.

c5e0fc4 fixes this by looking for a suitable file on the repository metadata (repomd.xml) first. It seems to work, but I'm unable to test, so if you're willing to it would be awesome! :)

@teleshoes
Copy link
Contributor Author

thanks! im going to open another PR for the unrelated fix i included here, which i think is still necessary. i will test it tmrw and reflash

@teleshoes teleshoes closed this Jun 15, 2021
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