pkgng/pkgng — pull request #476 by vstakhov (2013-03-22 13:52:50+00:00)
Title: Do not leave temporary files on update.

Unlink temporary file immediately to guarantee that it will be removed
even if pkg update is terminated by user.
Fix race condition to avoid opening uninitialised variable repofile_unchecked
if `repo.sqlite' file is not in the archive fetched from a mirror.