Clean temporary file handling for metadata generation, and add test.
This uses a context-manager instead of manually handling removing the file.
Depends on D2465.
Migrated from D2469 (view on Phabricator)
Staging instance, all changes can be removed at any time
This uses a context-manager instead of manually handling removing the file.
Depends on D2465.
Migrated from D2469 (view on Phabricator)