Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 5.2.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Eli Schwartz (eschwartz) - Thursday, 24 October 2019, 06:44 GMT
You could also use a script as your XferCommand, for example:

/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"
```

Loading...