From 400aa5fe515f90e4c9034fa4d5607f59c307594b Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 12 Apr 2019 22:40:06 +0200 Subject: [PATCH] Cleaned get methods of Repo and RepoPath --- lib/spack/spack/repo.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index fcc76af37c0..00928d84b61 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -638,11 +638,8 @@ def repo_for_pkg(self, spec): return self.first_repo() @autospec - def get(self, spec, new=False): - """Find a repo that contains the supplied spec's package. - - Raises UnknownPackageError if not found. - """ + def get(self, spec): + """Returns the package associated with the supplied spec.""" return self.repo_for_pkg(spec).get(spec) def get_pkg_class(self, pkg_name): @@ -873,6 +870,7 @@ def _read_config(self): @autospec def get(self, spec): + """Returns the package associated with the supplied spec.""" if not self.exists(spec.name): raise UnknownPackageError(spec.name)