Skip to content

Commit

Permalink
Added fix for commit hashed versions coming up as newer than AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
ericm committed Apr 15, 2020
1 parent babfcd3 commit 1441639
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func newerVersion(oldVersion, newVersion string) bool {
oldVer := strings.Split(oldVersion, "-")
newVer := strings.Split(newVersion, "-")
if len(oldVer) > 1 && len(newVer) > 1 {
if len(oldVer[0]) > 7 {
return oldVersion != newVersion // Likely commit hashed
}
// For rXX
rSplitO := strings.SplitAfter(oldVer[0], "r")
rSplitN := strings.SplitAfter(newVer[0], "r")
Expand Down

0 comments on commit 1441639

Please sign in to comment.