msys2-runtime-3.4(update-patches.sh): do generate stable checksums for the Cygwin code
As of v6.1.0, Pacman no longer generates `SKIP` as SHA-256 checksums for
Git repositories, as per the release notes at
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/NEWS?ref_type=tags#L21:
> - Add checksum support for git/mercurial/bzr sources
Instead of outputting `SKIP`, Pacman now runs `git -c core.abbrev=no
archive --format tar <branch-or-tag> | sha256sum` and uses the result:
2fc2ab6cf0
Unfortunately, the output of `git archive` is not stable. For one, the
`core.autoCRLF` setting (which defaults to `true` in Git for Windows)
affects the result.
Let's ensure that that `core.autoCRLF` setting is forced to `false`,
with the idea to add other settings as required.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
36d576f972
commit
36daff5336
@ -75,6 +75,7 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
GIT_CONFIG_PARAMETERS="${GIT_CONFIG_PARAMETERS+$GIT_CONFIG_PARAMETERS }'core.autocrlf=false'" \
|
||||||
updpkgsums ||
|
updpkgsums ||
|
||||||
die "Could not update the patch set checksums in PKGBUILD"
|
die "Could not update the patch set checksums in PKGBUILD"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user