You are not logged in.

#1 2024-12-07 22:02:38

lopster
Member
Registered: 2021-10-11
Posts: 11

[SOLVED] pacman 7 and interrupted downloads?

The behavior of pacman has changed with version 7 when package downloads are interrupted with ^C or network failure. It's now downloading all packages again from the start rather than just the ones still pending when the interruption occurred. For those of us with terrible internet this is a little annoying. Downloaded files are going into a subdir of the cache dir that also isn't cleaned up on interruption. Can the old behavior be restored or are there any plans to improve this? I assume I can manually move completed downloads out of that temp folder on failure but it would be nice if pacman took care of that itself or resumed downloading using the previous cache subdir.

I'm not using DownloadUser and --disable-sandbox doesn't change this.

Thank you.

Last edited by lopster (2024-12-07 22:45:16)

Offline

#2 2024-12-07 22:16:00

Awebb
Member
Registered: 2010-05-06
Posts: 6,683

Re: [SOLVED] pacman 7 and interrupted downloads?

I cannot confirm this behaviour. Mind posting your config? Perhaps permissions on the cache folder? Do you have any exotic mounts there?

Offline

#3 2024-12-07 22:39:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: [SOLVED] pacman 7 and interrupted downloads?

Stopping with ^C is a known issue.   Network failure should be fine.

Offline

#4 2024-12-07 22:44:55

lopster
Member
Registered: 2021-10-11
Posts: 11

Re: [SOLVED] pacman 7 and interrupted downloads?

Thank you for the replies!

I diff'd my config and the .pacnew and saw the DownloadUser was in there with no default. I put that in my config and now it works as expected even with ^C. When I originally read the announcement on this I thought manual intervention only applied to installs with local repos. I now see there's a sentence that might indicate the config should be merged.

Offline

#5 2024-12-07 23:05:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,294

Re: [SOLVED] pacman 7 and interrupted downloads?

That isn't something that needs an announcement, taking care of .pacnew files when pacman tells you about them is normal maintenance.

Offline

#6 2024-12-07 23:38:28

lopster
Member
Registered: 2021-10-11
Posts: 11

Re: [SOLVED] pacman 7 and interrupted downloads?

If missing, a required config value should be defaulted or cause an error.

Last edited by lopster (2024-12-07 23:39:02)

Offline

Board footer

Powered by FluxBB