files: make _write_db_file as context manager
This ensures the tarfile is properly closed.
Also make it a normal function because there is no point in it being a coroutine.
Signed-off-by: Filipe Laíns lains@riseup.net
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
This ensures the tarfile is properly closed.
Also make it a normal function because there is no point in it being a coroutine.
Signed-off-by: Filipe Laíns lains@riseup.net