From 7591c0f54fa3272df0f6b7057f6096bb513e9328 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 12 Apr 2021 12:12:16 -0600 Subject: give sections a separate thing --- repos/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repos/__init__.py') diff --git a/repos/__init__.py b/repos/__init__.py index 75f25c3..fbdca5e 100644 --- a/repos/__init__.py +++ b/repos/__init__.py @@ -26,7 +26,7 @@ def update_versions(): for repo in all_repos: repo.update() -def get_versions(package: str, args: Mapping[str, str]) -> Mapping[str, Version]: +def get_versions(package: str, args: Mapping[str, str]) -> Mapping[Repository, Version]: special_cases = dict() for repo, name in args.items(): special_cases[repo] = name @@ -42,5 +42,5 @@ def get_versions(package: str, args: Mapping[str, str]) -> Mapping[str, Version] package_here = package repo_version = repo.get_version(package_here) if repo_version is not None: - result[repo.full_name()] = repo_version + result[repo] = repo_version return result -- cgit v1.2.3