better checks before saying SUCCESS (#550)

This commit is contained in:
Massimo Branchini authored and GitHub committed 2025-10-25 12:43:09 -04:00
1 parent 62df30ed6c
commit 38068eeaac
1 file changed
+6
+6
View File
@@ -271,6 +271,12 @@ Singleton {
if (root.isChecking) {
return "ERROR: already checking"
}
if (!distributionSupported) {
return "ERROR: distribution not supported"
}
if (!pkgManager && !updChecker) {
return "ERROR: update checker not available"
}
root.checkForUpdates()
return "SUCCESS: Now checking..."
}