Allan McRae pushed to branch master at Pacman / Pacman


Commits:
67e3a7be by morganamilo at 2025-05-30T14:48:14+01:00
libalpm: fix regression in downloader

Fixes failure to finalize download path if the package file already
exists but the .sig file does not.

This patch also moves .sig.part files which should be done for
completeness although it's probably rare/inconsequential for them to
exist.

Hopefully this is now the right approach now. The logic is as follows:

  Check if dest_name or temp_name exists and try to move whichever
  does.

  If neither exist assume we're just downloading sig files and don't
  error.

  Figure out the .sig base filename.

  Try to move the .sig file if one was needed and if that fails try
  move the .sig.part file.

The patch leaves the logging as is. Maybe we should check if moves fail
for reasons other than non existence and log it properly. Though this is
probably rare and pacman will error out later anyway.

Fixes #256

- - - - -


1 changed file:

- lib/libalpm/dload.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/67e3a7be36643b37568d071d95583bb4ca094e24

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/67e3a7be36643b37568d071d95583bb4ca094e24
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to