Style
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
6fbadb35e7
commit
936d363c44
@ -47,13 +47,13 @@ class Mktemp
|
|||||||
|
|
||||||
def run
|
def run
|
||||||
prefix_name = @prefix.tr "@", "AT"
|
prefix_name = @prefix.tr "@", "AT"
|
||||||
if retain_in_cache?
|
@tmpdir = if retain_in_cache?
|
||||||
source_dir = "#{HOMEBREW_CACHE}/Sources/#{prefix_name}"
|
tmpdir = HOMEBREW_CACHE/"Sources/#{prefix_name}"
|
||||||
@tmpdir = Pathname.new(source_dir)
|
chmod_rm_rf(tmpdir) # clear out previous staging directory
|
||||||
chmod_rm_rf(@tmpdir) # clear out previous (otherwise not sure what happens)
|
tmpdir.parent.mkpath
|
||||||
FileUtils.mkdir_p(source_dir)
|
tmpdir
|
||||||
else
|
else
|
||||||
@tmpdir = Pathname.new(Dir.mktmpdir("#{prefix_name}-", HOMEBREW_TEMP))
|
Pathname.new(Dir.mktmpdir("#{prefix_name}-", HOMEBREW_TEMP))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make sure files inside the temporary directory have the same group as the
|
# Make sure files inside the temporary directory have the same group as the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user