Skip to content

Commit

Permalink
Pin the from/to versions in the delta filename
Browse files Browse the repository at this point in the history
in #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
  • Loading branch information
fenrus75 committed Sep 2, 2022
1 parent fa045a3 commit 10fcaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swupd/delta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 10fcaaa

Please sign in to comment.