summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-05-27 20:57:39 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-05-27 20:57:39 +0100
commit2534d1b3ee623c426465903ffa6e84a321b74f88 (patch)
tree974bac2b11a524bca40f28ac0bbd64f2eba314a5
parentApply ebuild masks after import (diff)
downloadgentoobrowse-api-2534d1b3ee623c426465903ffa6e84a321b74f88.tar.bz2
gentoobrowse-api-2534d1b3ee623c426465903ffa6e84a321b74f88.tar.xz
gentoobrowse-api-2534d1b3ee623c426465903ffa6e84a321b74f88.zip
Clean tmp folder at exit, not instantly
-rw-r--r--gentoobrowse-api/service/maintenanceimpl.cpp2
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);
});