mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
normalize alpm md5 refs (#1333)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
d7a51a69dd
commit
e58d0aecb8
@ -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:
|
||||
|
||||
@ -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",
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user