From 5d7b9f39cb27049973f2fffd338339106ee0290f Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 18 May 2016 10:50:57 +0100 Subject: [PATCH] Fix removal of directories. --- simgear/package/Install.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/package/Install.cxx b/simgear/package/Install.cxx index df569ddf..cdfc7103 100644 --- a/simgear/package/Install.cxx +++ b/simgear/package/Install.cxx @@ -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(); -- 2.39.5