From efa8e67508a0174d411917aa07743bdbfd2b3516 Mon Sep 17 00:00:00 2001
From: kaiobendrauf <38166195+kaiobendrauf@users.noreply.github.com>
Date: Tue, 17 Sep 2024 11:31:28 +0200
Subject: [PATCH] working on bug #12

---
 nudge-auto-updater.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nudge-auto-updater.py b/nudge-auto-updater.py
index b944dd0..a256dd0 100755
--- a/nudge-auto-updater.py
+++ b/nudge-auto-updater.py
@@ -274,7 +274,7 @@ def read_macos_data(d:dict):
 		dates[str(version)] = release["Latest"]["ReleaseDate"]
 		found_security_release = False
 		for security_release in release["SecurityReleases"]:
-			if security_release["ProductVersion"] == release["Latest"]["ProductVersion"]:
+			if Version(security_release["ProductVersion"]) == Version(release["Latest"]["ProductVersion"]):
 				urls[str(version)] = process_url(security_release["SecurityInfo"])
 				if "CVEs" in security_release:
 					cves[str(version)] = security_release["CVEs"]