aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.56k stars 374 forks source link

Aptly support for resume downloads like wget #1289

Closed sgtcoder closed 3 months ago

sgtcoder commented 4 months ago

aptly mirror update Max Retries should support resume download like wget has. This would allow a download from Spotify to complete successfully image

Detailed Description

Spotify repo can only be downloaded with multiple retries with resume support. It would be nice for aptly to support resume support.

Context

We can then download repos like Spotify where the connection keeps terminating

Others can then download updates to Spotify and other apps

Possible Implementation

Depending on what you use to download the deb files, it would be nice to enable resume support like wget has by default.

Your Environment

OS: Debian 12 Kernel: 6.6.28-x64v3-xanmod2 aptly version: 1.5.0+ds1-1+b4

neolynx commented 4 months ago

what downloader did you use ? there is the default and grab. The latter is supposed to continue download in a wget -c fashion.

could you try to configure the downloader to grab in either the config or in as argument in the mirror update command ?

sgtcoder commented 4 months ago

I used whatever the default was. Spotify likes to disconnect every couple seconds so it needs to reconnect and resume.

I am using this command

aptly mirror update -keyring trustedkeys.gpg ${repo_name}
neolynx commented 3 months ago

Could you try using the grab downloader ?

aptly mirror update -downloader grab -keyring trustedkeys.gpg ${repo_name}

You could also add the -max-tries=10 option.

sgtcoder commented 3 months ago

Thank you, this actually worked along with max-tries=10 for spotify. I set max-tries just for spotify. It seemed to work and not corrupt.

neolynx commented 3 months ago

happy to hear that !

may I close this issue ?

sgtcoder commented 3 months ago

Yes, maybe add this to the documentation. Normally it's not a problem, but Spotify repo is messed up and needs the grab with max-tries