Have check-mirrors download to TMPDIR instead of PWD
Currenly check-mirror always use $PWD for downloads. It should instead download TMPDIR (using standard mktmp facilities) by default.
git clone https://git.tails.boum.org/check-mirrors
#5 Updated by Anonymous about 2 years ago
So it would IMO be sufficient to change
Dir::mktmpdir('tmp-', TMPDIR) do |dir|
Dir::mktmpdir('tmp-') do |dir|
according to https://ruby-doc.org/stdlib-2.0.0/libdoc/tmpdir/rdoc/Dir.html#method-c-mktmpdir
But I don't code Ruby, so I'm not fully sure.
- Status changed from Confirmed to In Progress
- Assignee set to sajolida
- QA Check set to Ready for QA
Done in 62a35a5441d0674d0563e6dc22148c2720fcbe2d except I've left the default behavior unchanged, in order to avoid breaking deployments and use cases I have no visibility nor control over. Please review :)