Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34179 - [pacman] Let curl to print effective url (wget style)

Attached to Project: Arch Linux
Opened by speps (archspeps) - Wednesday, 06 March 2013, 19:04 GMT
Last edited by Allan McRae (Allan) - Thursday, 07 March 2013, 03:56 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The time wget was the default download manager in makepkg.conf,
discovering for typos in $source (PKGBUILD) was a way more easier and visually immediate.
I'm referring to such cases where the $source line is full of parameter substitutions, becoming unreadable.

wget, in its default output, prints the effective url processed for retrieving the requested resource,
curl instead, is quite silent displaying just the download progression state (and eventually errors).

adding the flag '-w "%{url_effective}\n"` cause the effective url to be printed at the end of the process,
so the effective processed url becomes easily verifiable (useful for redirects too).

Attached is a patch to current git tree.

I know this "feature" is quite subjective and there are other ways to get the same (like "source PKGBUILD && echo $source"),
but this happens so frequently to me to become really noisy.
(or maybe I'm just too used to my past workflow or I'm just a little dyslexic).
So, this is just a little not invasive proposal that could be approved if some one else share the same needs.

Additional info:
* package version(s): 4.* (when curl replaced wget)

Steps to reproduce:
*** without effective url ***
==> Making package: glee 5.4-4 (Wed Mar 6 19:56:18 CET 2013)
==> Retrieving Sources...
-> Downloading GLee-5.4.0-src.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading GLee-5.4.0-src.tar.gz
Aborting...

*** with effective url ***
==> Making package: glee 5.4-4 (Wed Mar 6 19:57:58 CET 2013)
==> Retrieving Sources...
-> Downloading GLee-5.4.0-src.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
http://elf-stone.com/WRONG-URL/GLee/GLee-5.4.0-src.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading GLee-5.4.0-src.tar.gz
Aborting...
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 07 March 2013, 03:56 GMT
Reason for closing:  Won't implement
Additional comments about closing:  You can adjust your DLAGENT as needed.

Loading...