Fetching pkg-1.17.1 fails due to size mismatch

From: Philipp Ost <pj_at_smo.de>
Date: Tue, 27 Jul 2021 18:31:37 +0200
Fetching pkg-1.17.1 fails because of a size mismatch:

===>  License BSD2CLAUSE accepted by the user
=> freebsd-pkg-1.17.1_GH0.tar.gz doesn't seem to exist in 
/usr/ports/distfiles/.
=> Attempting to fetch 
https://codeload.github.com/freebsd/pkg/tar.gz/1.17.1?dummy=/freebsd-pkg-1.17.1_GH0.tar.gz
fetch: 
https://codeload.github.com/freebsd/pkg/tar.gz/1.17.1?dummy=/freebsd-pkg-1.17.1_GH0.tar.gz: 
size mismatch: expected 3894495, actual 3894598
=> Attempting to fetch 
http://distcache.FreeBSD.org/ports-distfiles/freebsd-pkg-1.17.1_GH0.tar.gz
fetch: 
http://distcache.FreeBSD.org/ports-distfiles/freebsd-pkg-1.17.1_GH0.tar.gz: 
Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.


This patch fixes it for me:
diff --git a/ports-mgmt/pkg/distinfo b/ports-mgmt/pkg/distinfo
index fe65047a7b2a..3dbdb55df4a4 100644
--- a/ports-mgmt/pkg/distinfo
+++ b/ports-mgmt/pkg/distinfo
_at__at_ -1,3 +1,3 _at__at_
-TIMESTAMP = 1627401049
-SHA256 (freebsd-pkg-1.17.1_GH0.tar.gz) = 
288e4470503ddbaa9f0d75106b972e2e5860aa282c6891ab641530c3aa3dd8ee
-SIZE (freebsd-pkg-1.17.1_GH0.tar.gz) = 3894495
+TIMESTAMP = 1627402711
+SHA256 (freebsd-pkg-1.17.1_GH0.tar.gz) = 
26d61f014f9400c0fbe45862504f8dee80ae715a9a80717dba8a76ebf6b6d877
+SIZE (freebsd-pkg-1.17.1_GH0.tar.gz) = 3894598
Received on Tue Jul 27 2021 - 16:31:37 UTC

Original text of this message