Download the source files with an invocation of makepkg before capturing the
output of makepkg -g. Without this, data printed to STDOUT by the downloader is
included in the PKGBUILD.
---
 contrib/updpkgsums.sh.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in
index ffea96b..760c414 100644
--- a/contrib/updpkgsums.sh.in
+++ b/contrib/updpkgsums.sh.in
@@ -72,6 +72,9 @@ if [[ ! -w . ]]; then
 fi
 
 {
+       # Download sources first to avoid downloader output in newsums array 
below.
+       makepkg --verifysource -dp "$buildfile" >/dev/null 2>&1
+
        # Generate the new sums and try to unlink the file before writing stdin 
back
        # into it. This final precaution shouldn't fail based on the previous 
checks,
        # but it's better to be extra careful before unlinking files.
-- 
1.8.4


Reply via email to