aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMike McQuaid2016-09-16 13:51:21 +0100
committerMike McQuaid2016-09-16 13:51:56 +0100
commite3609b6fd4001523679562c33064e17d03e1534f (patch)
tree6864f57a269e237c0d1cad531b457b5de0346e5e /Library/Homebrew/utils
parent53713593d677cb916402742940d14bfc7e60a5a4 (diff)
downloadbrew-e3609b6fd4001523679562c33064e17d03e1534f.tar.bz2
Move LinkedKegs/PinnedKegs/Locks from Library.
These don't make sense to be tied to the `HOMEBREW_REPOSITORY` but instead should live in the `HOMEBREW_PREFIX` as they all relate to its state.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/lock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/lock.sh b/Library/Homebrew/utils/lock.sh
index ab6d2533d..cc041fa74 100644
--- a/Library/Homebrew/utils/lock.sh
+++ b/Library/Homebrew/utils/lock.sh
@@ -3,7 +3,7 @@
# Noted due to the fixed FD, a shell process can only create one lock.
lock() {
local name="$1"
- local lock_dir="$HOMEBREW_LIBRARY/Locks"
+ local lock_dir="$HOMEBREW_PREFIX/var/homebrew/locks"
local lock_file="$lock_dir/$name"
[[ -d "$lock_dir" ]] || mkdir -p "$lock_dir"
# 200 is the file descriptor used in the lock.