diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/node-js/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/node-js/package.py b/var/spack/repos/builtin/packages/node-js/package.py index cebb18a621..a7d633f837 100644 --- a/var/spack/repos/builtin/packages/node-js/package.py +++ b/var/spack/repos/builtin/packages/node-js/package.py @@ -78,10 +78,10 @@ class NodeJs(Package): if sys.platform == 'darwin': process_pipe = subprocess.Popen(["which", "libtool"], stdout=subprocess.PIPE) - result_which = process_pipe.communicate()[0] + result_which = process_pipe.communicate()[0].strip() process_pipe = subprocess.Popen(["whereis", "libtool"], stdout=subprocess.PIPE) - result_whereis = process_pipe.communicate()[0] + result_whereis = process_pipe.communicate()[0].strip().split()[-1] assert result_which == result_whereis, ( 'On OSX the system libtool must be used. Please' '(temporarily) remove \n %s or its link to libtool from' |