Skip to content

Commit

Permalink
normalize alpm md5 refs (anchore#1333)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>

Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Nov 9, 2022
1 parent e9eff86 commit 7ca2b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/alpm/parse_alpm_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func parseMtree(r io.Reader) ([]pkg.AlpmFileRecord, error) {
})
case "md5digest":
entry.Digests = append(entry.Digests, file.Digest{
Algorithm: "md5digest",
Algorithm: "md5",
Value: kv.Value(),
})
default:
Expand Down
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/alpm/parse_alpm_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestMtreeParse(t *testing.T) {
Time: parseTime("2022-04-10T14:59:52+02:00"),
Digests: []file.Digest{
{
Algorithm: "md5digest",
Algorithm: "md5",
Value: "81c39827e38c759d7e847f05db62c233",
},
{
Expand Down

0 comments on commit 7ca2b43

Please sign in to comment.