bug#81508: 31.0.50; package.el archive contents download robustness issues

Sean Whitton <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
X-debbugs-cc: Philip Kaludercic <[email protected]>

If there is an ENOSPC in the middle of writing the archive-contents
file, the truncated file is left behind.  This is because
package--download-one-archive uses plain write-region instead of writing
into a temporary file and then atomically renaming it into place.

Worse, if a truncated file has been left behind,
package--read-archive-file errors instead of trying to delete and
re-download the file.

-- 
Sean Whitton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.