summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-01 15:34:26 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-10 13:52:27 +0000
commit3ebe37b1db1637f351d5d4652b0b80be0403f373 (patch)
tree23b56a5627505e33994c21b93c36dae6e91e6c6a /morphlib/buildcommand.py
parentcfa6237e902d911303ca4e5da19a6dfdb362eccb (diff)
downloadmorph-3ebe37b1db1637f351d5d4652b0b80be0403f373.tar.gz
Improve downloading artifacts for OSTree artifact cache
This fixes two issues: first, downloads were being put into the default TMPDIR, which is an in-memory file system. When large artifacts are put into /tmp such as gcc-devel, which is over 400MB, I found that my system became unusable due to out of memory / swap death. Ideally we'd fix Linux's memory management, but a more practical solution for now is to download the files to the artifact cache directory. I've not noticed any loss in speed from this change. Second, temporary files should always cleaned up now, even when there are errors during transfer or extraction.
Diffstat (limited to 'morphlib/buildcommand.py')
0 files changed, 0 insertions, 0 deletions