@@ -2125,8 +2125,10 @@ def UpdateVersionsAndFlags (self):
2125
2125
else :
2126
2126
self .Conflicts = []
2127
2127
2128
- # run setup script to check for errors that can't be checked here
2129
2128
if compatible :
2129
+ self .SetIncompatible ( "" )
2130
+
2131
+ # run setup script to check for errors that can't be checked here
2130
2132
doChecks = False
2131
2133
packageCheckFile = "/data/" + packageName + "/packageCheckVersion"
2132
2134
# no checks have been done recently so do them now
@@ -2147,6 +2149,7 @@ def UpdateVersionsAndFlags (self):
2147
2149
# avoid starting a new check if there is something pending
2148
2150
if not self .InstallPending and not self .DownloadPending :
2149
2151
PushAction ( command = 'check' + ':' + packageName , source = 'AUTO' )
2152
+ self .lastSetupCheckTime = time .time ()
2150
2153
compatible = False
2151
2154
2152
2155
self .SetInstallOk (compatible )
@@ -2828,22 +2831,16 @@ def InstallPackage ( self, packageName=None, source=None , action='install' ):
2828
2831
2829
2832
package = PackageClass .LocatePackage (packageName )
2830
2833
package .InstallPending = False
2831
- # either install or check will have checked for file set or patch errors
2832
- # so reset the time so next check can be delayed for a while
2833
- if action == 'install' or action == 'check' :
2834
- package .lastSetupCheckTime = time .time ()
2835
2834
2836
2835
errorMessage = ""
2837
2836
if setupRunFail :
2838
2837
errorMessage = "could not run setup"
2839
2838
elif returnCode == EXIT_SUCCESS :
2840
- package .SetIncompatible ("" ) # this marks the package as compatible
2841
2839
DbusIf .UpdateStatus ( message = "" , where = sendStatusTo )
2842
2840
if source == 'GUI' :
2843
2841
DbusIf .AcknowledgeGuiEditAction ( '' )
2844
2842
elif returnCode == EXIT_REBOOT :
2845
2843
package .ActionNeeded = REBOOT_NEEDED
2846
- package .SetIncompatible ("" ) # this marks the package as compatible
2847
2844
if source == 'GUI' :
2848
2845
logging .warning ( packageName + " " + action + " REBOOT needed but handled by GUI" )
2849
2846
DbusIf .UpdateStatus ( message = "" , where = sendStatusTo )
@@ -2854,7 +2851,6 @@ def InstallPackage ( self, packageName=None, source=None , action='install' ):
2854
2851
global SystemReboot
2855
2852
SystemReboot = True
2856
2853
elif returnCode == EXIT_RESTART_GUI :
2857
- package .SetIncompatible ("" ) # this marks the package as compatible
2858
2854
package .ActionNeeded = GUI_RESTART_NEEDED
2859
2855
if source == 'GUI' :
2860
2856
logging .warning ( packageName + " " + action + " GUI restart needed but handled by GUI" )
0 commit comments