From: James Turner Date: Wed, 4 May 2016 21:22:34 +0000 (+0100) Subject: Packages: fix extract dir cleanup on success. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83d3c3fc1ea07c35d7470d75bf810d4a6f3dfd82;p=simgear.git 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. --- diff --git a/simgear/package/Install.cxx b/simgear/package/Install.cxx index 9b71d9f0..df569ddf 100644 --- a/simgear/package/Install.cxx +++ b/simgear/package/Install.cxx @@ -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