aboutsummaryrefslogtreecommitdiff
path: root/repos/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'repos/__init__.py')
-rw-r--r--repos/__init__.py4
1 files changed, 2 insertions, 2 deletions
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