Skip to content

Conversation

@dpsmith
Copy link
Member

@dpsmith dpsmith commented Apr 22, 2024

This PR adds the ability for updatemgr to verify contents of packages file. For now the changes to updatemgr haskell code is left as a patch. If this is the desired default behavior, the patch can be applied to the haskell code repo, otherwise the patch could be hidden behind a OE feature variable.

Use the hash length to determine which algorithm to use.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Use getopts to allow -d and -p to be specified in any order.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
It's better this way to check the signature before looking at the
contents.
Use the new option to check the package hashes.
@dpsmith dpsmith requested a review from shahs-ais July 29, 2025 17:06
Copy link
Contributor

@crogers1 crogers1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me other than the one comment.

verifyUpdateMetadataSignature = void $
handleError failed . safeShellExecuteAndLogOutput . cmd =<< allowDevRepoCert
where
- cmd False = "verify-repo-metadata " ++ updateDirCurrent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this part of the change didn't go directly into manager.git?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants