diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 52f690c4d6f17077b3715e6e3a16a1c569529eff..b1c55de22c248529846f934b1c8ec45ccd1d8d82 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -4308,8 +4308,8 @@ follows: return # This implementation is lazy and only checks the first candidate exe_path = candidates[0] - exe = spack.util.executable.Executable(exe_path) - output = exe('--version') + exe = Executable(exe_path) + output = exe('--version', output=str, error=str) version_str = ... # parse output for version string return Spec.from_detection( 'foo-package@{0}'.format(version_str) diff --git a/lib/spack/spack/cmd/external.py b/lib/spack/spack/cmd/external.py index 170b5b039511e2b5a0fde5e1816d400e4d596444..5dcd6ebbd169e7e4e38ba5aa194c61fe87895d67 100644 --- a/lib/spack/spack/cmd/external.py +++ b/lib/spack/spack/cmd/external.py @@ -260,7 +260,7 @@ def _get_external_packages(packages_to_check, system_path_to_exe=None): if not specs: tty.debug( - 'The following executables in {0} were decidedly not' + 'The following executables in {0} were decidedly not ' 'part of the package {1}: {2}' .format(prefix, pkg.name, ', '.join(exes_in_prefix)) )