1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00
pacman/lib/libalpm
Christian Hesse 3b3152fc50 dload: avoid renaming files downloaded via sync operations
If the server redirects from ${repo}.db to ${repo}.db.tar.gz pacman gets
this wrong: It saves to new filename and fails when accessing
${repo}.db.

We need the remote filename only when downloading remote files with
pacman's -U operation. This introduces a new field 'trust_remote_name'
to payload. If set pacman downloads to the filename given by the server.

The field trust_remote_name is set in alpm_fetch_pkgurl().

Fixes FS#36791 ([pacman] downloads to wrong filename with redirect).

[dave: remove redundant assignment leading to memory leak]

Signed-off-by: Allan McRae <allan@archlinux.org>
2013-09-18 14:28:03 +10:00
..
po Update gitignore files for use with autoreconf 2013-07-22 13:27:23 +10:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
add.c Do not refer to FlySpray numbers 2013-08-21 11:12:30 +10:00
add.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
alpm_list.c Document alpm_list files are to be stand alone 2013-06-06 13:47:32 +10:00
alpm_list.h Document alpm_list files are to be stand alone 2013-06-06 13:47:32 +10:00
alpm.c Improve documentation of libalpm interface functions 2013-03-31 11:08:54 +10:00
alpm.h libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
backup.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
backup.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
base64.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
base64.h base64: don't compile base64_encode() function 2011-10-17 12:03:02 -05:00
be_local.c libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
be_package.c do not check error from close(2) 2013-07-05 14:32:23 +10:00
be_sync.c libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
conflict.c conflict.c: fix directory ownership check 2013-08-21 11:13:46 +10:00
conflict.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
db.c libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
db.h libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
delta.c Use a defined constant in delta.c for num_matches 2013-01-03 12:03:10 +10:00
delta.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
deps.c libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
deps.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
diskspace.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
diskspace.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
dload.c dload: avoid renaming files downloaded via sync operations 2013-09-18 14:28:03 +10:00
dload.h dload: avoid renaming files downloaded via sync operations 2013-09-18 14:28:03 +10:00
error.c Improve error message when package is missing required signature 2013-05-29 14:08:03 +10:00
filelist.c alpm_filelist: remove resolved_path 2013-06-03 13:33:47 +10:00
filelist.h alpm_filelist: remove resolved_path 2013-06-03 13:33:47 +10:00
graph.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
graph.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
group.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
group.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
handle.c Add configuration option for Upgrade operation SigLevel 2013-02-07 10:48:11 +10:00
handle.h Add configuration option for Upgrade operation SigLevel 2013-02-07 10:48:11 +10:00
libalpm.pc.in Use libalpm version in pkg-config file 2013-04-26 12:43:53 +10:00
libarchive-compat.h inline libarchive compat wrappers 2013-02-07 10:48:11 +10:00
log.c Add format attributes to all required functions 2013-02-13 11:50:33 +10:00
log.h add caller prefix to alpm_logaction 2013-01-28 23:38:46 +10:00
Makefile.am inline libarchive compat wrappers 2013-02-07 10:48:11 +10:00
md5.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
md5.h Update MD5 routines with changes from PolarSSL 2011-08-11 20:17:21 -05:00
package.c alpm_filelist: remove resolved_path 2013-06-03 13:33:47 +10:00
package.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pkghash.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pkghash.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
rawstr.c include util.h in rawstr.c 2011-07-05 22:36:40 -05:00
remove.c use full path when checking for mountpoints 2013-07-05 14:34:58 +10:00
remove.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
sha2.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
sha2.h Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
signing.c libalpm: avoid name space conflict 2013-09-04 09:51:20 +10:00
signing.h Make decode_signature available to the library 2013-02-09 12:43:37 +10:00
sync.c libalpm: introduce a usage level for repos 2013-09-04 09:51:20 +10:00
sync.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
trans.c Add format attributes to all required functions 2013-02-13 11:50:33 +10:00
trans.h Update copyright year for 2013 2013-01-03 12:03:09 +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 alpm: log errors for scriptlets terminated by a signal 2013-09-04 09:51:19 +10:00
util.h do not check error from close(2) 2013-07-05 14:32:23 +10:00
version.c Fix space between control structure and open parens 2013-01-04 21:49:38 +10:00