Skip to content

Commit 35285dd

Browse files
committed
fix: is_installed - consider --index-url pattern
1 parent 6048092 commit 35285dd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

glob/manager_core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import cm_global
2424
from manager_util import *
2525

26-
version = [2, 48, 4]
26+
version = [2, 48, 5]
2727
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
2828

2929

@@ -97,7 +97,7 @@ def clear_pip_cache():
9797
def is_blacklisted(name):
9898
name = name.strip()
9999

100-
pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
100+
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
101101
match = re.search(pattern, name)
102102

103103
if match:
@@ -123,7 +123,7 @@ def is_installed(name):
123123
if name.startswith('#'):
124124
return True
125125

126-
pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
126+
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
127127
match = re.search(pattern, name)
128128

129129
if match:

prestartup_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def is_installed(name):
448448
if name.startswith('#'):
449449
return True
450450

451-
pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
451+
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
452452
match = re.search(pattern, name)
453453

454454
if match:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-manager"
33
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
4-
version = "2.48.4"
4+
version = "2.48.5"
55
license = { file = "LICENSE.txt" }
66
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
77

0 commit comments

Comments
 (0)