Fix typo in spack external debug msg (#17982)
This commit is contained in:
@@ -4308,8 +4308,8 @@ follows:
|
|||||||
return
|
return
|
||||||
# This implementation is lazy and only checks the first candidate
|
# This implementation is lazy and only checks the first candidate
|
||||||
exe_path = candidates[0]
|
exe_path = candidates[0]
|
||||||
exe = spack.util.executable.Executable(exe_path)
|
exe = Executable(exe_path)
|
||||||
output = exe('--version')
|
output = exe('--version', output=str, error=str)
|
||||||
version_str = ... # parse output for version string
|
version_str = ... # parse output for version string
|
||||||
return Spec.from_detection(
|
return Spec.from_detection(
|
||||||
'foo-package@{0}'.format(version_str)
|
'foo-package@{0}'.format(version_str)
|
||||||
|
Reference in New Issue
Block a user