[lxc-devel] [distrobuilder/master] sources: Fix openSUSE mirror
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Mon Mar 25 16:15:58 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 431 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190325/180443bd/attachment.bin>
-------------- next part --------------
From 9f399351a7bd9c394ae89aac7a37901dcfcaa69e Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Mon, 25 Mar 2019 17:14:01 +0100
Subject: [PATCH] sources: Fix openSUSE mirror
Use the same mirror for the actual image and the checksum file.
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
sources/opensuse-http.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources/opensuse-http.go b/sources/opensuse-http.go
index 9b493a3..ddcc80b 100644
--- a/sources/opensuse-http.go
+++ b/sources/opensuse-http.go
@@ -55,7 +55,7 @@ func (s *OpenSUSEHTTP) Run(definition shared.Definition, rootfsDir string) error
return lxd.Unpack(filepath.Join(fpath, fname), rootfsDir, false, false, nil)
}
- checksumPath := fmt.Sprintf("%s.sha256", tarballPath)
+ checksumPath := fmt.Sprintf("%s/%s.sha256", baseURL, fname)
checksumFile := path.Base(checksumPath)
shared.DownloadHash(definition.Image, checksumPath, "", nil)
More information about the lxc-devel
mailing list