uvex_transients.utils.updates.check_for_updates#
- uvex_transients.utils.updates.check_for_updates(background: bool = True) str | None[source]#
Warn if the cached latest release is newer than the installed version, refreshing a stale cache.
- Parameters:
background (
bool, optional) – If True (the default), a stale cache is refreshed in a daemon thread and the result is only reported on a later call. If False, the refresh is done first, in this thread, so a newer release is reported by this very call.- Returns:
The tag of the newer release a warning was issued for, or None if the check is disabled, the installed version is a development build, or it is up to date.
- Return type: