From b2611483fa068ce798faeb1d29ee7afbe1918390 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 15 Jan 2023 13:12:58 +0100 Subject: [PATCH] Fixed info plugin latest version check for Insiders --- material/plugins/info/plugin.py | 2 +- src/plugins/info/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/plugins/info/plugin.py b/material/plugins/info/plugin.py index 0ca31918d..ea419e011 100644 --- a/material/plugins/info/plugin.py +++ b/material/plugins/info/plugin.py @@ -67,7 +67,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]): # Check if we're running the latest version _, version = res.headers.get("location").rsplit("/", 1) package = get_distribution("mkdocs-material") - if package.version != version: + if not package.version.startswith(version): log.error("Please upgrade to the latest version.") self._help_on_versions_and_exit(package.version, version) diff --git a/src/plugins/info/plugin.py b/src/plugins/info/plugin.py index 0ca31918d..ea419e011 100644 --- a/src/plugins/info/plugin.py +++ b/src/plugins/info/plugin.py @@ -67,7 +67,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]): # Check if we're running the latest version _, version = res.headers.get("location").rsplit("/", 1) package = get_distribution("mkdocs-material") - if package.version != version: + if not package.version.startswith(version): log.error("Please upgrade to the latest version.") self._help_on_versions_and_exit(package.version, version)