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

[FEATURE]: Add continue from last time #1006

Open
Mtepihasti5 opened this issue Feb 17, 2025 · 2 comments
Open

[FEATURE]: Add continue from last time #1006

Mtepihasti5 opened this issue Feb 17, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@Mtepihasti5
Copy link

Is your feature request related to a problem? Please describe.

I was downloading retropie 4.8 for rpi 3 and others.
I did see that it can't resolve github.com
And i had to start from the beginning.
Then i said:
Aw BS.
So anyone please help me.

Describe the solution you would like to see implemented

It should continue from when it was cancelled.
On the start it should ask me should it continue from when it was cancelled

Describe alternatives you've considered

I'd consider that it tries until it can continue

Additional context

Please help me

Version

1.9.0

@Mtepihasti5 Mtepihasti5 added the enhancement New feature or request label Feb 17, 2025
@lurch
Copy link
Contributor

lurch commented Feb 17, 2025

Unfortunately looking at https://github.com/raspberrypi/rpi-imager/blob/qml/src/imagewriter.cpp#L168 and https://github.com/raspberrypi/rpi-imager/blob/qml/src/imagewriter.cpp#L421 it doesn't actually store the URL of the file you were trying to download, but only the SHA256 checksum of the file that you last downloaded.

So on a SUCCESSFUL download & write attempt, the lastdownload.cache file will be updated with your (complete) image file, and the lastDownloadSHA256 setting will be updated with the checksum of your (complete) file. So the next time you try to download & write the same image, RPi Imager asks itself "Does the lastDownloadSHA256 match the checksum of the image I'm being asked to download? Oh, it does so I'll just write lastdownload.cache to the SD card instead."

But on an UNSUCCESSFUL download & write attempt (e.g. if your internet connection gets interrupted) the lastDownloadSHA256 setting will be updated with the checksum of your incomplete file. So the next time you try to download & write the same image, RPi Imager asks itself "Does the lastDownloadSHA256 match the checksum of the image I'm being asked to download? No it doesn't, so I'll ignore the lastdownload.cache file and download the image instead."

TLDR: This won't be an "easy fix".

@Mtepihasti5
Copy link
Author

Mtepihasti5 commented Feb 18, 2025

it's all right that it isn't an easy fix but please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants