Skip to content

Commit

Permalink
Add a comment to Repository#base_temp_dir() in reaction to #73.
Browse files Browse the repository at this point in the history
  • Loading branch information
clonezone committed Apr 10, 2014
1 parent 2732c2d commit 84f4d12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fig/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ def runtime_for_package(descriptor)
)
end

# Note that we use a temporary directory within the repository so that we
# don't need to worry about crossing file-system boundaries. If we stored
# things in /tmp, we couldn't do true file moves, just copies and deletes,
# and there would be race conditions and other not-fun things to worry about.
def base_temp_dir()
File.join(@local_repository_directory, 'tmp')
end
Expand Down

0 comments on commit 84f4d12

Please sign in to comment.