From 83d3c3fc1ea07c35d7470d75bf810d4a6f3dfd82 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 4 May 2016 22:22:34 +0100 Subject: [PATCH] Packages: fix extract dir cleanup on success. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Don’t leave extract_xxxxxxx dirs in the Aircraft tree after successfully extract the contents to the final location. --- simgear/package/Install.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5