Mercurial > hg > graal-compiler
diff mx/mx_graal.py @ 16863:0d2e3399acfe
mx: add argument for permissions to copyToJdk()
author | Danilo Ansaloni <danilo.ansaloni@oracle.com> |
---|---|
date | Tue, 19 Aug 2014 17:30:28 +0200 |
parents | bf499b4d86e9 |
children | 73d994651fcd |
line wrap: on
line diff
--- a/mx/mx_graal.py Tue Aug 19 15:14:06 2014 +0200 +++ b/mx/mx_graal.py Tue Aug 19 17:30:28 2014 +0200 @@ -546,7 +546,7 @@ os.unlink(javaSource) os.unlink(javaClass) -def _copyToJdk(src, dst): +def _copyToJdk(src, dst, permissions=JDK_UNIX_PERMISSIONS_FILE): name = os.path.basename(src) dstLib = join(dst, name) if mx.get_env('SYMLINK_GRAAL_JAR', None) == 'true': @@ -563,10 +563,7 @@ shutil.copyfile(src, tmp) os.close(fd) shutil.move(tmp, dstLib) - os.chmod(dstLib, JDK_UNIX_PERMISSIONS_FILE) - -def _installDistInJdksExt(dist): - _installDistInJdks(dist, True) + os.chmod(dstLib, permissions) def _installDistInJdks(dist, ext=False): """