]> git.mxchange.org Git - simgear.git/commitdiff
Fix removal of directories.
authorJames Turner <zakalawe@mac.com>
Wed, 18 May 2016 09:50:57 +0000 (10:50 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/package/Install.cxx

index df569ddffeda522e25f62a0fbf47f4ab71e727f8..cdfc7103d503259856a66a61a0fb162af6799fd8 100644 (file)
@@ -167,7 +167,9 @@ protected:
         }
 
         // extract_xxxx directory is now empty, so remove it
-        m_extractPath.remove();
+        if (m_extractPath.exists()) {
+            simgear::Dir(m_extractPath).remove();
+        }
 
         m_owner->m_revision = m_owner->package()->revision();
         m_owner->writeRevisionFile();