GODT-1202: Do not update package if it's version older than launcher

This commit is contained in:
Alexander Bilyak
2021-09-21 13:56:27 +02:00
committed by Jakub Cuth
parent e940d9f6fe
commit f21f583d05
2 changed files with 18 additions and 3 deletions

View File

@ -59,6 +59,10 @@ func (v *Version) Equal(version *semver.Version) bool {
return v.version.Equal(version)
}
func (v *Version) SemVer() *semver.Version {
return v.version
}
// VerifyFiles verifies all files in the version directory.
func (v *Version) VerifyFiles(kr *crypto.KeyRing) error {
fileBytes, err := ioutil.ReadFile(filepath.Join(v.path, sumFile)) // nolint[gosec]