Packages: fix extract dir cleanup on success.

Don’t leave extract_xxxxxxx dirs in the Aircraft tree after successfully
extract the contents to the final location.
This commit is contained in:
James Turner
2016-05-04 22:22:34 +01:00
parent d39b055ed1
commit 1fe8931129

View File

@@ -166,6 +166,9 @@ protected:
return;
}
// extract_xxxx directory is now empty, so remove it
m_extractPath.remove();
m_owner->m_revision = m_owner->package()->revision();
m_owner->writeRevisionFile();
m_owner->m_download.reset(); // so isDownloading reports false