From 10fcaaa9d717a8e5876200b6b3e7da6ec1b74a7d Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Thu, 1 Sep 2022 23:52:46 +0000 Subject: [PATCH] Pin the from/to versions in the delta filename in https://github.com/clearlinux/mixer-tools/issues/782 a funky issue is found where we do not use the right versions for delta files in some cases. A full fix is complicated, but the client IGNORES the versions! so we can just hardcode the versions to anything (10 and 20 here) and it'll suddenly resolve itself --- swupd/delta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swupd/delta.go b/swupd/delta.go index 0b78a473..52b753d3 100644 --- a/swupd/delta.go +++ b/swupd/delta.go @@ -334,7 +334,7 @@ func findDeltas(c *config, oldManifest, newManifest *Manifest) ([]Delta, error) from := nf.DeltaPeer to := nf dir := filepath.Join(c.outputDir, fmt.Sprint(to.Version), "delta") - name := fmt.Sprintf("%d-%d-%s-%s", from.Version, to.Version, from.Hash, to.Hash) + name := fmt.Sprintf("%d-%d-%s-%s", 10, 20, from.Hash, to.Hash) path := filepath.Join(dir, name) if seen[path] {