From 203067a2742ad2cbb986369b216b1f1ecfb96458 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Sep 2015 13:06:08 +0200 Subject: Automatically cleanup package archive, directory on failure --- bpkg/utility | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/utility') diff --git a/bpkg/utility b/bpkg/utility index 72e02ba..02d447c 100644 --- a/bpkg/utility +++ b/bpkg/utility @@ -9,6 +9,8 @@ #include // move() #include // uncaught_exception () +#include + #include namespace bpkg @@ -38,6 +40,9 @@ namespace bpkg void rm_r (const dir_path&, bool dir = true); + using auto_rm = butl::auto_rmfile; + using auto_rm_r = butl::auto_rmdir; + // Process. // // The process command line is printed for verbosity >= 2 (essential -- cgit v1.1