diff --git a/syft/pkg/cataloger/alpm/parse_alpm_db.go b/syft/pkg/cataloger/alpm/parse_alpm_db.go index 1f376b76674..b3a825f9c06 100644 --- a/syft/pkg/cataloger/alpm/parse_alpm_db.go +++ b/syft/pkg/cataloger/alpm/parse_alpm_db.go @@ -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: diff --git a/syft/pkg/cataloger/alpm/parse_alpm_db_test.go b/syft/pkg/cataloger/alpm/parse_alpm_db_test.go index 9d645796c40..9debc22a6d2 100644 --- a/syft/pkg/cataloger/alpm/parse_alpm_db_test.go +++ b/syft/pkg/cataloger/alpm/parse_alpm_db_test.go @@ -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", }, {