From 36647a66deacba22a0ce6b8b0d1c5b1a454884ba Mon Sep 17 00:00:00 2001 From: s1341 Date: Mon, 5 Sep 2016 12:03:10 +0300 Subject: [PATCH] Only mv bin to bin.orig the first time, otherwise the mv will fail --- plugins/python-build/bin/python-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 059bcdf5..a4c6e511 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1470,7 +1470,9 @@ build_package_symlink_version_suffix() { if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-framework"* ]]; then if [ -e "${PREFIX_PATH}/bin" ]; then # Always create `bin` as symlink to framework path if the version was built with `--enable-frameowrk` (#590) - mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig" + if [ ! -e "${PREFIX_PATH}/bin.orig" ]; then + mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig" + fi fi # Only symlinks are installed in ${PREFIX_PATH}/bin ln -fs "${PREFIX_PATH}/Python.framework/Versions/Current/bin" "${PREFIX_PATH}/bin"