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:
Alex Goodman
2022-11-09 15:04:15 +00:00
committed by GitHub
parent d7a51a69dd
commit e58d0aecb8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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",
},
{