avoid circular import of spack.patch
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
4005ae8651
commit
97f868a54e
@ -805,7 +805,7 @@ def tag_index(self) -> spack.tag.TagIndex:
|
|||||||
return self._tag_index
|
return self._tag_index
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def patch_index(self) -> spack.patch.PatchCache:
|
def patch_index(self) -> "spack.patch.PatchCache":
|
||||||
"""Merged PatchIndex from all Repos in the RepoPath."""
|
"""Merged PatchIndex from all Repos in the RepoPath."""
|
||||||
if self._patch_index is None:
|
if self._patch_index is None:
|
||||||
self._patch_index = spack.patch.PatchCache(repository=self)
|
self._patch_index = spack.patch.PatchCache(repository=self)
|
||||||
@ -1158,7 +1158,7 @@ def tag_index(self) -> spack.tag.TagIndex:
|
|||||||
return self.index["tags"]
|
return self.index["tags"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def patch_index(self) -> spack.patch.PatchCache:
|
def patch_index(self) -> "spack.patch.PatchCache":
|
||||||
"""Index of patches and packages they're defined on."""
|
"""Index of patches and packages they're defined on."""
|
||||||
return self.index["patches"]
|
return self.index["patches"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user