pacman/lib/libalpm
Allan McRae e6a6d30793 Handle .part files that are the size of the correct package
In rare cases, likely due to a well timed Ctrl+C, but possibly due to a
broken mirror, a ".part" file may have size at least that of the correct
package size.

When encountering this issue, currently pacman fails in different ways
depending on where the package falls in the list to download.  If last,
"wrong or NULL argument passed" error is reported, or a "invalid or
corrupt package" issue if not.

Capture these .part files, and remove the extension. This lets pacman
either use the package if valid, or offer to remove it if it fails checksum
or signature verification.

Signed-off-by: Allan McRae <allan@archlinux.org>
2019-11-15 23:29:20 +10:00
..
po Final translation updates for pacman-5.2.0 2019-10-21 17:25:29 +10:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
add.c Update copyright years 2019-10-23 22:06:54 +10:00
add.h Update copyright years 2019-10-23 22:06:54 +10:00
alpm.c Update copyright years 2019-10-23 22:06:54 +10:00
alpm.h pacman+libalpm: handle search errors 2019-11-08 16:32:55 +10:00
alpm_list.c Update copyright years 2019-10-23 22:06:54 +10:00
alpm_list.h Update copyright years 2019-10-23 22:06:54 +10:00
backup.c Update copyright years 2019-10-23 22:06:54 +10:00
backup.h Update copyright years 2019-10-23 22:06:54 +10:00
base64.c base64.c: comment out unused variable 2014-01-15 15:54:56 +10:00
base64.h Do not #define _RESERVED_IDENTIFIERS 2016-09-25 18:04:57 +10:00
be_local.c Update copyright years 2019-10-23 22:06:54 +10:00
be_package.c Fix segfault importing PGP key for pacman -U operations 2019-10-27 19:05:27 +10:00
be_sync.c Update copyright years 2019-10-23 22:06:54 +10:00
conflict.c Update copyright years 2019-10-23 22:06:54 +10:00
conflict.h Update copyright years 2019-10-23 22:06:54 +10:00
db.c pacman+libalpm: handle search errors 2019-11-08 16:32:55 +10:00
db.h pacman+libalpm: handle search errors 2019-11-08 16:32:55 +10:00
deps.c Update copyright years 2019-10-23 22:06:54 +10:00
deps.h Update copyright years 2019-10-23 22:06:54 +10:00
diskspace.c Update copyright years 2019-10-23 22:06:54 +10:00
diskspace.h Update copyright years 2019-10-23 22:06:54 +10:00
dload.c Handle .part files that are the size of the correct package 2019-11-15 23:29:20 +10:00
dload.h Update copyright years 2019-10-23 22:06:54 +10:00
error.c Update copyright years 2019-10-23 22:06:54 +10:00
filelist.c Update copyright years 2019-10-23 22:06:54 +10:00
filelist.h Update copyright years 2019-10-23 22:06:54 +10:00
graph.c Update copyright years 2019-10-23 22:06:54 +10:00
graph.h Update copyright years 2019-10-23 22:06:54 +10:00
group.c Update copyright years 2019-10-23 22:06:54 +10:00
group.h Update copyright years 2019-10-23 22:06:54 +10:00
handle.c Update copyright years 2019-10-23 22:06:54 +10:00
handle.h Update copyright years 2019-10-23 22:06:54 +10:00
hook.c Update copyright years 2019-10-23 22:06:54 +10:00
hook.h Update copyright years 2019-10-23 22:06:54 +10:00
ini.c run hooks during trans_commit 2015-10-18 10:59:23 +10:00
ini.h run hooks during trans_commit 2015-10-18 10:59:23 +10:00
libalpm.pc.in build: check for gpgme with pkg-config before gpgme-config 2019-03-19 14:05:53 +10:00
libarchive-compat.h Update copyright years 2019-10-23 22:06:54 +10:00
log.c Update copyright years 2019-10-23 22:06:54 +10:00
log.h Update copyright years 2019-10-23 22:06:54 +10:00
Makefile.am autotools: distribute meson files 2019-10-04 11:25:48 +10:00
meson.build Remove support for deltas from libalpm 2019-03-07 11:12:12 +10:00
package.c Update copyright years 2019-10-23 22:06:54 +10:00
package.h Update copyright years 2019-10-23 22:06:54 +10:00
pkghash.c Update copyright years 2019-10-23 22:06:54 +10:00
pkghash.h Update copyright years 2019-10-23 22:06:54 +10:00
rawstr.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
remove.c Update copyright years 2019-10-23 22:06:54 +10:00
remove.h Update copyright years 2019-10-23 22:06:54 +10:00
signing.c Update copyright years 2019-10-23 22:06:54 +10:00
signing.h Update copyright years 2019-10-23 22:06:54 +10:00
sync.c Handle .part files that are the size of the correct package 2019-11-15 23:29:20 +10:00
sync.h Update copyright years 2019-10-23 22:06:54 +10:00
trans.c Update copyright years 2019-10-23 22:06:54 +10:00
trans.h Update copyright years 2019-10-23 22:06:54 +10:00
util-common.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util-common.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.c Update copyright years 2019-10-23 22:06:54 +10:00
util.h Update copyright years 2019-10-23 22:06:54 +10:00
version.c Update copyright years 2019-10-23 22:06:54 +10:00