forked from Silverfish/proton-bridge
GODT-1202: Do not update package if it's version older than launcher
This commit is contained in:
committed by
Jakub Cuth
parent
e940d9f6fe
commit
f21f583d05
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user