projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf69aa
)
install: prevent a KeyError from being thrown when PORTABLE is not set
author
Nathan Rajlich
<nathan@tootallnate.net>
Mon, 6 Aug 2012 20:22:05 +0000
(13:22 -0700)
committer
Nathan Rajlich
<nathan@tootallnate.net>
Mon, 6 Aug 2012 20:22:05 +0000
(13:22 -0700)
tools/install.py
patch
|
blob
|
history
diff --git
a/tools/install.py
b/tools/install.py
index
1dd039a
..
028e5ca
100755
(executable)
--- a/
tools/install.py
+++ b/
tools/install.py
@@
-154,7
+154,7
@@
def npm_files(action):
action([link_path], 'bin/npm')
elif action == install:
try_symlink('../lib/node_modules/npm/bin/npm-cli.js', link_path)
- if os.environ
['PORTABLE']
:
+ if os.environ
.get('PORTABLE')
:
# This crazy hack is necessary to make the shebang execute the copy
# of node relative to the same directory as the npm script. The precompiled
# binary tarballs use a prefix of "/" which gets translated to "/bin/node"