Fetch metadata by hash for DEB repos. (#18536)
This enables atomic updates to the repository metadata on the server side, which should mitigate some of the issues we’ve seen with bad hashes for packages.
Austin S. Hemmelgarn committed
Sep 16, 2024 at 06:58 UTC
2246fb180b21e9e8a661030b75a438869a3f6ab7
4 files changed
+12
-4
packaging/repoconfig/CMakeLists.txt
+1
-1
@@ -10,7 +10,7 @@ list(APPEND DEB_DISTROS debian ubuntu)
10
set(DEB_GPG_KEY_SOURCE "https://repo.netdata.cloud/netdatabot.gpg.key")
11
12
set(PACKAGE_VERSION 3)
13
-set(PACKAGE_RELEASE 4)
13
+set(PACKAGE_RELEASE 5)
14
15
set(CPACK_THREADS 0)
16
set(CPACK_STRIP_FILES NO)
packaging/repoconfig/deb.changelog
+6
@@ -1,3 +1,9 @@
1
+@PKG_NAME@ (3-5) unstable; urgency=medium
2
+
3
+ * Swithc DEB packages to fetch repo metadata by hash.
4
+
5
+ -- Austin Hemmelgarn <austin@netdata.cloud> Thu, 12 Sep 2024 07:27:00 -0400
6
+
7
@PKG_NAME@ (3-4) unstable; urgency=medium
8
9
* Convert sources to DEB822 format
packaging/repoconfig/netdata.sources.in
+2
-2
@@ -3,7 +3,7 @@ Types: deb
3
URIs: http://repo.netdata.cloud/repos/@VARIANT@/@DIST_NAME@/
4
Suites: @SUITE@/
5
Signed-By: /usr/share/keyrings/netdata-archive-keyring.gpg
6
-By-Hash: No
6
+By-Hash: Yes
7
Enabled: Yes
8
9
X-Repolib-Name: Netdata repository configuration repository
@@ -11,5 +11,5 @@ Types: deb
11
URIs: http://repo.netdata.cloud/repos/repoconfig/@DIST_NAME@/
12
Suites: @SUITE@/
13
Signed-By: /usr/share/keyrings/netdata-archive-keyring.gpg
14
-By-Hash: No
14
+By-Hash: Yes
15
Enabled: Yes
packaging/repoconfig/rpm.changelog
+3
-1
@@ -1,4 +1,6 @@
1
-* Mon Aug 19 2024 Austin Hemmelgarn <austin@netdata.cloud
1
+* Thu Sep 17 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-5
2
+- Fix changelog formatting.
3
+* Mon Aug 19 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-4
4
- Version bump to stay in sync with DEB packages.
5
* Fri Aug 9 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-3
6
- Use system certificate config for Yum/DNF repos.