diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/relocate.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index fc653e825d..8277cca068 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -594,4 +594,6 @@ def mime_type(file): file_cmd = Executable('file') output = file_cmd('-b', '-h', '--mime-type', file, output=str, error=str) tty.debug('[MIME_TYPE] {0} -> {1}'.format(file, output.strip())) + if '/' not in output: + output += '/' return tuple(output.strip().split('/')) |