Michael Smith has submitted this change and it was merged. (
http://gerrit.cloudera.org:8080/20332 )
Change subject: Use realpath to determine relative path
......................................................................
Use realpath to determine relative path
Removes use of 'python', which can fail on newer machines that don't
add the symlink, in favor of 'realpath'.
$ python -c "import os.path; print(os.path.relpath('/usr/lib', '/usr/bin'))"
../lib
$ realpath --relative-to=/usr/bin /usr/lib
../lib
Change-Id: I569ecc0ace59ed3c388ae4f31cd80a695d5af0b6
Reviewed-on: http://gerrit.cloudera.org:8080/20332
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Michael Smith <[email protected]>
---
M functions.sh
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Joe McDonnell: Looks good to me, approved
Michael Smith: Verified
--
To view, visit http://gerrit.cloudera.org:8080/20332
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: native-toolchain
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I569ecc0ace59ed3c388ae4f31cd80a695d5af0b6
Gerrit-Change-Number: 20332
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Laszlo Gaal <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>