FIXED: pip downgrade blacklisting doesn't work if ~= pattern
https://github.com/ltdrdata/ComfyUI-Manager/issues/1301 https://github.com/ltdrdata/ComfyUI-Manager/issues/1425
This commit is contained in:
@@ -418,7 +418,7 @@ def is_installed(name):
|
||||
if match is None:
|
||||
if name in pips:
|
||||
return True
|
||||
elif match.group(2) in ['<=', '==', '<']:
|
||||
elif match.group(2) in ['<=', '==', '<', '~=']:
|
||||
if name in pips:
|
||||
if manager_util.StrictVersion(pips[name]) >= manager_util.StrictVersion(match.group(3)):
|
||||
print(f"[ComfyUI-Manager] skip black listed pip installation: '{name}'")
|
||||
|
||||
Reference in New Issue
Block a user