Skip to content

Commit

Permalink
fix(localMeta): Add delegated targets back to localMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy committed Sep 14, 2022
1 parent 7097fd8 commit 28720aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,16 @@ func (c *Client) getLocalMeta() error {
c.loadTargets(targets.Targets)
}
}

for fileName := range meta {
if fileName != "targets.json" &&
fileName != "snapshot.json" &&
fileName != "root.json" &&
fileName != "timestamp.json" {
c.localMeta[fileName] = meta[fileName]
}
}

if loadFailed {
// If any of the metadata failed to be verified, return the reason for that failure
return retErr
Expand Down

0 comments on commit 28720aa

Please sign in to comment.