diff -U2 -r /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/PKGBUILD /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/PKGBUILD --- /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/PKGBUILD 2024-11-17 03:08:26.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/PKGBUILD 2024-11-17 02:52:08.000000000 +0000 @@ -2,5 +2,5 @@ pkgname=rokon -pkgver=1.0.0+dd7b70e +pkgver=1.0.0+da400ec pkgrel=1 epoch=0 diff -U2 -r /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/go.mod /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/go.mod --- /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/go.mod 2024-11-17 03:07:58.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/go.mod 2024-11-17 02:51:42.000000000 +0000 @@ -11,5 +11,4 @@ github.com/ianlancetaylor/cgosymbolizer v0.0.0-20241025222116-6b205f073fdd github.com/koron/go-ssdp v0.0.4 - golang.org/x/mod v0.22.0 ) diff -U2 -r /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/go.sum /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/go.sum --- /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/go.sum 2024-11-17 03:07:58.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/go.sum 2024-11-17 02:51:42.000000000 +0000 @@ -25,6 +25,4 @@ golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo= golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo= golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM= diff -U2 -r /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/main.go /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/main.go --- /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/main.go 2024-11-17 03:07:58.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/main.go 2024-11-17 02:51:44.000000000 +0000 @@ -16,5 +16,4 @@ "github.com/adrg/xdg" - "golang.org/x/mod/semver" "github.com/brycensranch/go-aptabase/pkg/aptabase/v1" @@ -510,22 +509,21 @@ resp, err := client.R().SetResult(&GitHubRelease{}).Get(url) if err != nil { - log.Printf("Update Check Failed. Error fetching release information: %v", err) + showDialog("Update Check Failed", fmt.Sprintf("Error fetching release information: %v", err), app) return } if resp.StatusCode() != 200 { - log.Printf("Update Check Failed. Unable to fetch release info: "+resp.Status()) + showDialog("Update Check Failed", "Unable to fetch release info: "+resp.Status(), app) return } + // Decode the response into the GitHubRelease struct release := resp.Result().(*GitHubRelease) - latestReleaseVersion := release.TagName - appVersion := app.Version() - if semver.Compare(latestReleaseVersion, appVersion) > 0 { - log.Printf("A new version is available: "+latestReleaseVersion) - } else if semver.Compare(latestReleaseVersion, appVersion) == 0 { - log.Printf("Rokon is up to date!") + + // Compare versions + if release.TagName != app.Version() { + showDialog("Update Available", "A new version is available: "+release.TagName, app) } else { - log.Printf("You're ahead of the latest release", "You are using a newer version than the available release.") + showDialog("Up to Date", "Your application is up to date.", app) } }) Only in /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/vendor/golang.org/x: mod diff -U2 -r /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/vendor/modules.txt /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/vendor/modules.txt --- /var/lib/copr-rpmbuild/results/rokon/upstream-unpacked/Source0/vendor/modules.txt 2024-11-17 03:09:40.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/rokon/srpm-unpacked/rokon-vendored-source.zip-extract/vendor/modules.txt 2024-11-17 02:53:02.000000000 +0000 @@ -59,7 +59,4 @@ ## explicit; go 1.22.0 golang.org/x/exp/rand -# golang.org/x/mod v0.22.0 -## explicit; go 1.22.0 -golang.org/x/mod/semver # golang.org/x/net v0.31.0 ## explicit; go 1.18