Skip to content

Commit

Permalink
offline-update: Check bundle meta in each sub-command
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Apr 16, 2024
1 parent 69266da commit 3ce1763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subcommands/targets/offline-update.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ Notice that multiple targets in the same directory is only supported in LmP >= v
}
fmt.Println("Successfully downloaded offline update content")
}
doShowBundle(cmd, []string{dstDir})
}

func getTargetInfo(targetFile *tuf.FileMeta) (*ouTargetInfo, error) {
Expand Down Expand Up @@ -489,6 +490,7 @@ func doSignBundle(cmd *cobra.Command, args []string) {
} else {
subcommands.DieNotNil(err)
}
doShowBundle(cmd, args)
}

func getLatestRoot(bundleTufPath string) (*client.AtsTufRoot, error) {
Expand Down

0 comments on commit 3ce1763

Please sign in to comment.