1238 # 1 = daily |
1238 # 1 = daily |
1239 # 2 = weekly |
1239 # 2 = weekly |
1240 # 3 = monthly |
1240 # 3 = monthly |
1241 # 4 = always |
1241 # 4 = always |
1242 |
1242 |
1243 if period == 0 or not self.__ui.isOnline(): |
1243 if ( |
|
1244 period == 0 or |
|
1245 (self.__ui is not None and not self.__ui.isOnline()) |
|
1246 ): |
1244 return |
1247 return |
1245 |
1248 |
1246 elif period in [1, 2, 3]: |
1249 elif period in [1, 2, 3]: |
1247 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1250 lastModified = QFileInfo(self.pluginRepositoryFile).lastModified() |
1248 if lastModified.isValid() and lastModified.date().isValid(): |
1251 if lastModified.isValid() and lastModified.date().isValid(): |
1328 # redo if it is a redirect |
1331 # redo if it is a redirect |
1329 self.checkPluginUpdatesAvailable() |
1332 self.checkPluginUpdatesAvailable() |
1330 return |
1333 return |
1331 |
1334 |
1332 if self.__updateAvailable: |
1335 if self.__updateAvailable: |
1333 self.__ui.activatePluginRepositoryViewer() |
1336 self.__ui and self.__ui.activatePluginRepositoryViewer() |
1334 else: |
1337 else: |
1335 self.pluginRepositoryFileDownloaded.emit() |
1338 self.pluginRepositoryFileDownloaded.emit() |
1336 |
1339 |
1337 def checkPluginEntry(self, name, short, description, url, author, version, |
1340 def checkPluginEntry(self, name, short, description, url, author, version, |
1338 filename, status): |
1341 filename, status): |