FS#64243 - Request to display download command
Attached to Project:
Pacman
Opened by Syrone Wong (wongsyrone) - Thursday, 24 October 2019, 06:38 GMT
Last edited by Allan McRae (Allan) - Thursday, 24 October 2019, 06:52 GMT
Opened by Syrone Wong (wongsyrone) - Thursday, 24 October 2019, 06:38 GMT
Last edited by Allan McRae (Allan) - Thursday, 24 October 2019, 06:52 GMT
|
Details
Summary and Info:
Before pacman 5.2.0, I can use XferCommand = echo %u; /usr/bin/curl -x 192.168.1.1:808 blabla to display download URL to help debug downloading via HTTP proxy server. Due to https://git.archlinux.org/pacman.git/commit/?id=808a4f15ce82d2ed7eeb06de73d0f313620558ee, I can no longer inject Bash command line into XferCommand, Pacman shows the URL only when running in debug mode with --debug, but it generates so much information. I request to add some way to display the download command or simply %u. Steps to Reproduce: Use XferCommand described above and run with pacman 5.2.0. |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 24 October 2019, 06:52 GMT
Reason for closing: None
Additional comments about closing: Working as intended
Thursday, 24 October 2019, 06:52 GMT
Reason for closing: None
Additional comments about closing: Working as intended
/usr/local/bin/pacman-downloadhelper %u %o
This script would be a simple shell script:
```
#!/bin/sh
url=$1
outfile=$2
# print debug output for the xfercommand
set -x
curl -x 192.168.1.1:808 -L -C - -f -o "$outfile" "$url"
```