Module: tools Branch: master Commit: 4da7fea6937a8d32cbf132e152af20ea750cabe4 URL: http://source.winehq.org/git/tools.git/?a=commit;h=4da7fea6937a8d32cbf132e15...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed Oct 31 04:46:11 2012 +0100
testbot/Janitor: Remove unneeded package qualifiers for the configuration settings.
---
testbot/bin/Janitor.pl | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/testbot/bin/Janitor.pl b/testbot/bin/Janitor.pl index 6c398d7..e978aa3 100755 --- a/testbot/bin/Janitor.pl +++ b/testbot/bin/Janitor.pl @@ -42,9 +42,9 @@ $ENV{PATH} = "/usr/bin:/bin"; delete $ENV{ENV};
# Delete obsolete Jobs -if ($WineTestBot::Config::JobPurgeDays != 0) +if ($JobPurgeDays != 0) { - my $DeleteBefore = time() - $WineTestBot::Config::JobPurgeDays * 86400; + my $DeleteBefore = time() - $JobPurgeDays * 86400; my $Jobs = CreateJobs(); foreach my $JobKey (@{$Jobs->GetKeys()}) { @@ -91,9 +91,9 @@ foreach my $SetKey (@{$Sets->GetKeys()}) }
# Delete obsolete Patches now that no Job references them -if ($WineTestBot::Config::JobPurgeDays != 0) +if ($JobPurgeDays != 0) { - $DeleteBefore = time() - $WineTestBot::Config::JobPurgeDays * 86400; + $DeleteBefore = time() - $JobPurgeDays * 86400; my $Patches = CreatePatches(); foreach my $PatchKey (@{$Patches->GetKeys()}) { @@ -118,9 +118,9 @@ if ($WineTestBot::Config::JobPurgeDays != 0) }
# Archive old Jobs, that is remove all their associated files -if ($WineTestBot::Config::JobArchiveDays != 0) +if ($JobArchiveDays != 0) { - my $ArchiveBefore = time() - $WineTestBot::Config::JobArchiveDays * 86400; + my $ArchiveBefore = time() - $JobArchiveDays * 86400; my $Jobs = CreateJobs(); $Jobs->FilterNotArchived(); foreach my $JobKey (@{$Jobs->GetKeys()})