[lxc-devel] [distrobuilder/master] sources/void: Update location of checksums

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Jan 21 06:56:46 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 432 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200120/10ebca94/attachment.bin>
-------------- next part --------------
From d23d9182fef0471a363926dc3ea98fe6a0862245 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 21 Jan 2020 07:54:47 +0100
Subject: [PATCH] sources/void: Update location of checksums

This updates the location of both sha256 and its signature file.

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 sources/voidlinux-http.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sources/voidlinux-http.go b/sources/voidlinux-http.go
index 8a1780d..4454213 100644
--- a/sources/voidlinux-http.go
+++ b/sources/voidlinux-http.go
@@ -37,8 +37,8 @@ func (s *VoidLinuxHTTP) Run(definition shared.Definition, rootfsDir string) erro
 	}
 
 	tarball := fmt.Sprintf("%s/%s", baseURL, fname)
-	digests := fmt.Sprintf("%s/sha256sums.txt", baseURL)
-	signatures := fmt.Sprintf("%s/sha256sums.txt.sig", baseURL)
+	digests := fmt.Sprintf("%s/sha256.txt", baseURL)
+	signatures := fmt.Sprintf("%s/sha256.sig", baseURL)
 
 	url, err := url.Parse(tarball)
 	if err != nil {
@@ -66,8 +66,8 @@ func (s *VoidLinuxHTTP) Run(definition shared.Definition, rootfsDir string) erro
 		shared.DownloadHash(definition.Image, digests, "", nil)
 		shared.DownloadHash(definition.Image, signatures, "", nil)
 		valid, err := shared.VerifyFile(
-			filepath.Join(fpath, "sha256sums.txt"),
-			filepath.Join(fpath, "sha256sums.txt.sig"),
+			filepath.Join(fpath, "sha256.txt"),
+			filepath.Join(fpath, "sha256.sig"),
 			definition.Source.Keys,
 			definition.Source.Keyserver)
 		if err != nil {


More information about the lxc-devel mailing list