summaryrefslogtreecommitdiffstats
path: root/test/scripts
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2013-09-05 16:08:23 +0200
committerAllan McRae <allan@archlinux.org>2013-09-18 06:28:03 +0200
commit3b3152fc501a1561d733c33557ff2f7be8376067 (patch)
treeff07d48eca9c4ee6a7703466423c7f0d685b13f2 /test/scripts
parent3f99cfba1b6ef1c5665488b651a3d6409730fa98 (diff)
downloadpacman-3b3152fc501a1561d733c33557ff2f7be8376067.tar.gz
pacman-3b3152fc501a1561d733c33557ff2f7be8376067.tar.xz
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>
Diffstat (limited to 'test/scripts')
0 files changed, 0 insertions, 0 deletions