fix: is_installed - consider --index-url pattern

This commit is contained in:
Dr.Lt.Data
2024-08-04 02:03:42 +09:00
parent 6048092d93
commit 35285dd74b
3 changed files with 5 additions and 5 deletions

View File

@@ -448,7 +448,7 @@ def is_installed(name):
if name.startswith('#'):
return True
pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
match = re.search(pattern, name)
if match: