diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-05-27 20:57:39 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-05-27 20:57:39 +0100 |
commit | 76c85fd065bcacaae5d1a41781bd4c2511822072 (patch) | |
tree | 974bac2b11a524bca40f28ac0bbd64f2eba314a5 | |
parent | Apply ebuild masks after import (diff) | |
download | gentoobrowse-api-76c85fd065bcacaae5d1a41781bd4c2511822072.tar.bz2 gentoobrowse-api-76c85fd065bcacaae5d1a41781bd4c2511822072.tar.xz gentoobrowse-api-76c85fd065bcacaae5d1a41781bd4c2511822072.zip |
Clean tmp folder at exit, not instantly
-rw-r--r-- | gentoobrowse-api/service/maintenanceimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse-api/service/maintenanceimpl.cpp b/gentoobrowse-api/service/maintenanceimpl.cpp index 2bb43af..8347d07 100644 --- a/gentoobrowse-api/service/maintenanceimpl.cpp +++ b/gentoobrowse-api/service/maintenanceimpl.cpp @@ -189,7 +189,7 @@ namespace Gentoo { Maintenance::refreshPackageTree(const Ice::Current &) { auto tmp = boost::filesystem::temp_directory_path() / "import"; - AdHoc::ScopeExit([&tmp]{ + AdHoc::ScopeExit tidyTmp([&tmp]{ boost::system::error_code ec; boost::filesystem::remove_all(tmp, ec); }); |