]> git.mxchange.org Git - simgear.git/commitdiff
Packages: fix extract dir cleanup on success.
authorJames Turner <zakalawe@mac.com>
Wed, 4 May 2016 21:22:34 +0000 (22:22 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
Don’t leave extract_xxxxxxx dirs in the Aircraft tree after successfully
extract the contents to the final location.

simgear/package/Install.cxx

index 9b71d9f0f020a922e0589809f1e7f9485ba775ba..df569ddffeda522e25f62a0fbf47f4ab71e727f8 100644 (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