Fix broken commit 2cd5adc

pull/5370/head
Ryan Dahl 2011-11-22 12:43:55 -08:00
parent 2cd5adc28b
commit 38c49fbc4a
2 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ class BuildContext(Utils.Context):
try:
shutil.copy2(src, tgt)
if chmod < 0: os.chmod(tgt, chmod)
if chmod >= 0: os.chmod(tgt, chmod)
except IOError:
try:
os.stat(src)

View File

@ -980,7 +980,7 @@ def install_npm(bld):
start_dir.ant_glob('**/*'),
cwd=start_dir,
relative_trick=True,
chmod=0)
chmod=-1)
bld.symlink_as('${PREFIX}/bin/npm',
'../lib/node_modules/npm/bin/npm-cli.js')