Hi!
Debian sponsor here (a sponsor is a Debian developer who uploads a package built by a non-developer)… I’m coordinating with the packager to get the Debian version updated to latest (0.9.8) but in the meantime, RPD is popping up this version check dialog on startup… In fact, it’s doing network requests to check for new versions on startup, which is not really necessary: end-users can’t actually act on those warnings because the program is installed through a Debian package.
I’m wondering if we should patch away the version check, or if there’s already a toggle we could use in the Debian package to disable those checks.
I’m looking at rapid.py
's stage4 initialization, and I am thinking of introducing a simple boolean around this code:
if skip_version_check:
logging.debug("Starting version check")
self.newVersion = NewVersion(self)
self.newVersionThread = QThread()
self.newVersionThread.started.connect(self.newVersion.start)
self.newVersion.checkMade.connect(self.newVersionCheckMade)
self.newVersion.bytesDownloaded.connect(self.newVersionBytesDownloaded)
self.newVersion.fileDownloaded.connect(self.newVersionDownloaded)
self.reverifyDownloadedTar.connect(self.newVersion.reVerifyDownload)
self.newVersion.downloadSize.connect(self.newVersionDownloadSize)
self.newVersion.reverified.connect(self.installNewVersion)
self.newVersion.moveToThread(self.newVersionThread)
QTimer.singleShot(0, self.newVersionThread.start)
self.newVersionCheckDialog = NewVersionCheckDialog(self)
self.newVersionCheckDialog.finished.connect(self.newVersionCheckDialogFinished)
# if values set, indicates the latest version of the program, and the main
# download page on the Rapid Photo Downloader website
self.latest_version = None # type: version_details
self.latest_version_download_page = None # type: str
would that work? i would need to figure out how to properly initialize skip_version_check
but that could be done through a minimal patch in the debian package, to avoid getting us out of sync…
what do you think?
thanks!