summaryrefslogtreecommitdiffstats
path: root/urpm/sys.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r--urpm/sys.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index acbc5a9e..cf32d42c 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -257,6 +257,11 @@ sub clean_dir {
require File::Path;
File::Path::rmtree([$dir]);
+}
+
+sub empty_dir {
+ my ($dir) = @_;
+ clean_dir($dir);
mkdir $dir, 0755;
}