updpkgsums overwrites checksum entries that are set to SKIP
I am maintaining the spotify package together with @antiz on the aur and we noticed something weird: when using updpkgsums
there are shasums generated for entries which currently have no entry:
--- a/spotify/PKGBUILD
+++ b/spotify/PKGBUILD
@@ -36,9 +36,9 @@ source=('spotify.protocol'
sha512sums=('999abe46766a4101e27477f5c9f69394a4bb5c097e2e048ec2c6cb93dfa1743eb436bde3768af6ba1b90eaac78ea8589d82e621f9cbe7d9ab3f41acee6e8ca20'
'2e16f7c7b09e9ecefaa11ab38eb7a792c62ae6f33d95ab1ff46d68995316324d8c5287b0d9ce142d1cf15158e61f594e930260abb8155467af8bc25779960615'
'39a57cfa059f4f61fc6a400c22b8ec3bbd87cfd6b014e1048e98c158412aa4db3e5a1fa339f2ecc3355f3ca082ee1cacba7dd3b8ffff7300f9220c90f5465459'
+ '867f2987d9d51882e2f31541b239d087f1da28583c5e4e95486ba9c334e38878f1d56142879edb165cf64b0a788d67fdb5a985d380f549d0ec8dff90b9c95a3c'
'SKIP'
- 'SKIP'
- 'SKIP')
+ 'b5b0562cefa16171bbd16a2f0f493873f184d49b7e7a76fc84ff8543d2e8266800c8a0c6220df4975568884279dfbe4bad715d909ab0e5a254ab4caeb166f96a')
The problem seems to be caused by the lower level call to makepkg -g
:
$ makepkg -g
==> Retrieving sources...
-> Found spotify.protocol
-> Found LICENSE
-> Found spotify-1.2.18.999-g9b38fc27-x86_64.deb
-> Found spotify-1.2.18.999-1-Release
-> Found spotify-1.2.18.999-1-Release.sig
-> Found spotify-1.2.18.999-1-x86_64-Packages
==> Generating checksums for source files...
sha512sums=('999abe46766a4101e27477f5c9f69394a4bb5c097e2e048ec2c6cb93dfa1743eb436bde3768af6ba1b90eaac78ea8589d82e621f9cbe7d9ab3f41acee6e8ca20'
'2e16f7c7b09e9ecefaa11ab38eb7a792c62ae6f33d95ab1ff46d68995316324d8c5287b0d9ce142d1cf15158e61f594e930260abb8155467af8bc25779960615'
'39a57cfa059f4f61fc6a400c22b8ec3bbd87cfd6b014e1048e98c158412aa4db3e5a1fa339f2ecc3355f3ca082ee1cacba7dd3b8ffff7300f9220c90f5465459'
'867f2987d9d51882e2f31541b239d087f1da28583c5e4e95486ba9c334e38878f1d56142879edb165cf64b0a788d67fdb5a985d380f549d0ec8dff90b9c95a3c'
'SKIP'
'b5b0562cefa16171bbd16a2f0f493873f184d49b7e7a76fc84ff8543d2e8266800c8a0c6220df4975568884279dfbe4bad715d909ab0e5a254ab4caeb166f96a')
I think updpkgsums
should modified so that sums which were previously specified SKIP are not inserted with new values.