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

Xyne xyne at archlinux.ca
Tue Sep 17 10:56:47 EDT 2013


Allan McRae wrote:

>Try this change in download_file in makepkg:
>
>- eval "$dlcmd || ret=\$?"
>+ eval "$dlcmd >&2 || ret=\$?"
>
>If that is good, send a patch.

I sent another patch just before getting this. I used the same approach, but I
redirected the output of the call to download_sources in the conditional
GENINTEG block.

Let me know if you still want me to move it to the download_file function and
I'll resubmit.

Incidentally, when I build makepkg locally and run "makepkg -g" it only outputs
the first checksum array if multiple are present (e.g. if the PKGBUILD
contains sha256sums and md5sums, in that order, it only outputs sha256sums). At
first I thought it was due to something I had done, but it happens even with the
current master branch. I've triple-checked this but I'm still expecting it to
be my fault.

I'm building with

./autogen.sh
# From pacman PKGBUILD
./configure --prefix=/usr --sysconfdir=/etc \
  --localstatedir=/var --enable-doc \
  --with-scriptlet-shell=/usr/bin/bash \
  --with-ldconfig=/usr/bin/ldconfig
make
make -C contrib

Can someone else check this? Using the powerpill PKGBUILD [1] I only get this:

==> Retrieving sources...
  -> Found powerpill-2013.7.25.tar.xz
  -> Found powerpill-2013.7.25.tar.xz.sig
==> Generating checksums for source files...
md5sums=('280b69b951a6e309a18897d7bdb1394c'
         'SKIP')


[1] http://xyne.archlinux.ca/projects/powerpill/pkgbuild/PKGBUILD



More information about the pacman-dev mailing list