Skip to content

Commit

Permalink
Fixed info plugin latest version check for Insiders
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jan 15, 2023
1 parent 2866925 commit b261148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/plugins/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def on_config(self, config):
# 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)

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def on_config(self, config):
# 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)

Expand Down

0 comments on commit b261148

Please sign in to comment.