From 79e3b8941d6b2bf87b9c092ff305d88382d91d44 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Aug 2019 20:38:30 -0600 Subject: version: use ProductName and ProductVersion as strings Signed-off-by: Jason A. Donenfeld --- updater/versions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'updater') diff --git a/updater/versions.go b/updater/versions.go index 6ff73391..7292ce7e 100644 --- a/updater/versions.go +++ b/updater/versions.go @@ -17,7 +17,8 @@ import ( func versionNewerThanUs(candidate string) (bool, error) { candidateParts := strings.Split(candidate, ".") - ourParts := strings.Split(version.RunningVersion(), ".") + _, ver := version.RunningNameVersion() + ourParts := strings.Split(ver, ".") if len(candidateParts) == 0 || len(ourParts) == 0 { return false, errors.New("Empty version") } -- cgit v1.2.3-59-g8ed1b