Skip to content

Commit

Permalink
adding notifications for minor release
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe da Veiga Leprevost committed Jan 20, 2023
1 parent 227f55b commit d42bf48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- FASTA header verification for IonQuant

### Changed

- New version annoucements will happpen for all updates, including minor changes

### Fixed
- Fixed an issue that would not udpate PSMs with razor IDs and description
17 changes: 5 additions & 12 deletions lib/gth/gth.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,16 @@ func UpdateChecker(v, b string) {

} else {

local := strings.Split(v, ".")
local[0] = strings.Replace(local[0], "v", "", 1)
local := strings.Replace(v, ".", "", -1)
local = strings.Replace(local, "v", "", 1)

remote := strings.Split(rel[0].TagName, ".")
remote[0] = strings.Replace(remote[0], "v", "", 1)
remote := strings.Replace(rel[0].TagName, ".", "", -1)
remote = strings.Replace(remote, "v", "", 1)

outdatedMajorVersion := remote[0] > local[0]
//outdatedMinorVersion := (remote[0] == local[0]) && (remote[1] > local[1])
//outdated := outdatedMajorVersion || outdatedMinorVersion

outdated := outdatedMajorVersion

if outdated {
if remote > local {
logrus.Warning("There is a new version of Philosopher available for download: https://github.com/Nesvilab/philosopher/releases")
}

}
}

}

0 comments on commit d42bf48

Please sign in to comment.