Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Make package resolve request respect case sensitivity -- Windows #689

Merged
merged 5 commits into from
Aug 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/rez/packages_.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from rez.serialise import FileFormat
from rez.config import config
import sys
import os


# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -749,11 +750,20 @@ def get_latest_package_from_string(txt, paths=None, error=False):

def _get_families(name, paths=None):
entries = []
valid = False
for path in (paths or config.packages_path):
repo = package_repository_manager.get_repository(path)
family_resource = repo.get_package_family(name)
if family_resource:
entries.append((repo, family_resource))
if not os.path.isdir(path):
continue
else:
if name in os.listdir(path):
valid = True
else:
continue
if valid:
repo = package_repository_manager.get_repository(path)
family_resource = repo.get_package_family(name)
if family_resource:
entries.append((repo, family_resource))

return entries

Expand Down