[PATCH] testbot: Treat directories and files the same when using rmtree().
Francois Gouget
fgouget at codeweavers.com
Wed Mar 7 06:32:12 CST 2018
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/bin/Janitor.pl | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testbot/bin/Janitor.pl b/testbot/bin/Janitor.pl
index d8a9650f1..41f88d9e7 100755
--- a/testbot/bin/Janitor.pl
+++ b/testbot/bin/Janitor.pl
@@ -242,8 +242,7 @@ if (opendir(my $dh, "$DataDir/staging"))
{
if ($Age >= $JobPurgeDays + 7)
{
- if ((-d $FileName and !rmtree($FileName)) or
- !unlink($FileName))
+ if (!rmtree($FileName))
{
LogMsg "Could not delete '$FileName': $!\n";
}
--
2.16.1
More information about the wine-devel
mailing list