You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
79 lines
3.7 KiB
Diff
79 lines
3.7 KiB
Diff
--- eric/eric6/UI/UserInterface.py.orig 2021-02-05 21:17:31.000000000 -0500
|
|
+++ eric/eric6/UI/UserInterface.py 2021-02-05 21:19:27.000000000 -0500
|
|
@@ -7151,74 +7151,7 @@
|
|
@param versions contents of the downloaded versions file (list of
|
|
strings)
|
|
"""
|
|
- url = ""
|
|
- try:
|
|
- if "snapshot-" in VersionOnly:
|
|
- # check snapshot version like snapshot-20170810
|
|
- if "snapshot-" in versions[2]:
|
|
- installedSnapshotDate = VersionOnly.rsplit("-", 1)[-1]
|
|
- availableSnapshotDate = versions[2].rsplit("-", 1)[-1]
|
|
- if availableSnapshotDate > installedSnapshotDate:
|
|
- res = E5MessageBox.yesNo(
|
|
- self,
|
|
- self.tr("Update available"),
|
|
- self.tr(
|
|
- """The update to <b>{0}</b> of eric is"""
|
|
- """ available at <b>{1}</b>. Would you like"""
|
|
- """ to get it?""")
|
|
- .format(versions[2], versions[3]),
|
|
- yesDefault=True)
|
|
- url = res and versions[3] or ''
|
|
- else:
|
|
- if self.manualUpdatesCheck:
|
|
- E5MessageBox.information(
|
|
- self,
|
|
- self.tr("Update Check"),
|
|
- self.tr(
|
|
- """You are using a snapshot release of"""
|
|
- """ eric. A more up-to-date stable release"""
|
|
- """ might be available."""))
|
|
- elif VersionOnly.startswith(("rev_", "@@")):
|
|
- # check installation from source
|
|
- if self.manualUpdatesCheck:
|
|
- E5MessageBox.information(
|
|
- self,
|
|
- self.tr("Update Check"),
|
|
- self.tr(
|
|
- """You installed eric directly from the source"""
|
|
- """ code. There is no possibility to check"""
|
|
- """ for the availability of an update."""))
|
|
- else:
|
|
- # check release version
|
|
- installedVersionTuple = self.__versionToTuple(VersionOnly)
|
|
- availableVersionTuple = self.__versionToTuple(versions[0])
|
|
- if availableVersionTuple > installedVersionTuple:
|
|
- res = E5MessageBox.yesNo(
|
|
- self,
|
|
- self.tr("Update available"),
|
|
- self.tr(
|
|
- """The update to <b>{0}</b> of eric is"""
|
|
- """ available at <b>{1}</b>. Would you like"""
|
|
- """ to get it?""")
|
|
- .format(versions[0], versions[1]),
|
|
- yesDefault=True)
|
|
- url = res and versions[1] or ''
|
|
- else:
|
|
- if self.manualUpdatesCheck:
|
|
- E5MessageBox.information(
|
|
- self,
|
|
- self.tr("eric is up to date"),
|
|
- self.tr(
|
|
- """You are using the latest version of"""
|
|
- """ eric"""))
|
|
- except (IndexError, TypeError):
|
|
- E5MessageBox.warning(
|
|
- self,
|
|
- self.tr("Error during updates check"),
|
|
- self.tr("""Could not perform updates check."""))
|
|
-
|
|
- if url:
|
|
- QDesktopServices.openUrl(QUrl(url))
|
|
+ pass
|
|
|
|
@pyqtSlot()
|
|
def __versionsDownloadCanceled(self):
|