mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Idempotency in symlink creation (#349)
This commit is contained in:
+3
-3
@@ -160,9 +160,9 @@ mkdir -p /app/.heroku/src
|
||||
if [[ $BUILD_DIR != '/app' ]]; then
|
||||
# python expects to reside in /app, so set up symlinks
|
||||
# we will not remove these later so subsequent buildpacks can still invoke it
|
||||
ln -s $BUILD_DIR/.heroku/python /app/.heroku/python
|
||||
ln -s $BUILD_DIR/.heroku/vendor /app/.heroku/vendor
|
||||
ln -s $BUILD_DIR/.heroku/venv /app/.heroku/venv
|
||||
ln -nsf $BUILD_DIR/.heroku/python /app/.heroku/python
|
||||
ln -nsf $BUILD_DIR/.heroku/vendor /app/.heroku/vendor
|
||||
ln -nsf $BUILD_DIR/.heroku/venv /app/.heroku/venv
|
||||
# Note: .heroku/src is copied in later.
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user