@@ -62,7 +62,7 @@ func parseRpmDB(resolver source.FilePathResolver, dbLocation source.Location, re
62
62
63
63
p := pkg.Package {
64
64
Name : entry .Name ,
65
- Version : toElVersion (metadata ),
65
+ Version : toELVersion (metadata ),
66
66
Locations : []source.Location {dbLocation },
67
67
FoundBy : catalogerName ,
68
68
Type : pkg .RpmPkg ,
@@ -78,11 +78,11 @@ func parseRpmDB(resolver source.FilePathResolver, dbLocation source.Location, re
78
78
79
79
// The RPM naming scheme is [name]-[version]-[release]-[arch], where version is implicitly expands to [epoch]:[version].
80
80
// RPM version comparison depends on comparing at least the version and release fields together as a subset of the
81
- // naming scheme. This toElVersion function takes a RPM DB package information and converts it into a minimally comparable
81
+ // naming scheme. This toELVersion function takes a RPM DB package information and converts it into a minimally comparable
82
82
// version string, containing epoch (optional), version, and release information. Epoch is an optional field and can be
83
83
// assumed to be 0 when not provided for comparison purposes, however, if the underlying RPM DB entry does not have
84
84
// an epoch specified it would be slightly disingenuous to display a value of 0.
85
- func toElVersion (metadata pkg.RpmdbMetadata ) string {
85
+ func toELVersion (metadata pkg.RpmdbMetadata ) string {
86
86
if metadata .Epoch != nil {
87
87
return fmt .Sprintf ("%d:%s-%s" , * metadata .Epoch , metadata .Version , metadata .Release )
88
88
}
0 commit comments