commit | ebbde237d33e783c562cc6c70987969ac7228b96 | [log] [tgz] |
---|---|---|
author | Zac Medico <zmedico@gentoo.org> | Sat Apr 27 14:59:57 2019 -0700 |
committer | Zac Medico <zmedico@gentoo.org> | Mon Apr 29 19:28:21 2019 -0700 |
tree | 199f183f43009bea38ee4e1ce4683372ef64466f | |
parent | db799d6ffe3a99c3ef04a0eec0eb6472a5f61431 [diff] |
fetch: atomic downloads (bug 175612) Direct FETCHCOMMAND/RESUMECOMMAND output to a temporary file with a constant .__download__ suffix, and atomically rename the file to remove the suffix only after the download has completed successfully (includes digest verification when applicable). Also add unit tests to cover most fetch cases. Bug: https://bugs.gentoo.org/175612 Signed-off-by: Zac Medico <zmedico@gentoo.org>