[pacman-dev] [PATCH] updpkgsums: omit downloader output when capturing checksums

Xyne xyne at archlinux.ca
Tue Sep 17 10:14:29 EDT 2013


Xyne wrote:

> {
>+	# Download sources first to avoid downloader output in newsums array below.
>+	makepkg --verifysource -dp "$buildfile" >/dev/null 2>&1
>+

I could not find a combination of makepkg options that would omit nonsensical
warnings and irrelevant output, so I have redirected everything to /dev/null.
This is not ideal because the user may be left wondering what's happening as
the sources are downloaded, but the output is confusing otherwise.

Using "-g" leads to the least output but that will lead to redundant
calculations of the checksums. The best approach would probably be to redirect
downloader output to stderr in makepkg proper when invoked with -g, which would
avoid this issue entirely.

Thoughts?



More information about the pacman-dev mailing list