aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2023-12-12 21:13:53 +0000
committerPascal Terjan <pterjan@mageia.org>2023-12-13 17:13:10 +0000
commit6059f47c125235a1932daef18c673e0aa33ba848 (patch)
tree291c9cdb71462eeb1d65578df97e2e1a0dbf781a
parentc53d21cf38263206af292b48d6369ee1662bd4be (diff)
downloadiurt-6059f47c125235a1932daef18c673e0aa33ba848.tar
iurt-6059f47c125235a1932daef18c673e0aa33ba848.tar.gz
iurt-6059f47c125235a1932daef18c673e0aa33ba848.tar.bz2
iurt-6059f47c125235a1932daef18c673e0aa33ba848.tar.xz
iurt-6059f47c125235a1932daef18c673e0aa33ba848.zip
Fix retry delay logic
-rw-r--r--lib/Iurt/Queue.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Queue.pm b/lib/Iurt/Queue.pm
index d877046..e78bd39 100644
--- a/lib/Iurt/Queue.pm
+++ b/lib/Iurt/Queue.pm
@@ -243,8 +243,8 @@ sub get_upload_tree_state {
my $mtime = stat("$todo/$f/$m/$s/$r")->mtime;
my $nb_failures = cat_("$todo/$f/$m/$s/$r");
plog('DEBUG', "$prefix failed $nb_failures times, last one was as " . localtime($mtime));
- if ($mtime < time) {
- plog('INFO', "Too early to retry $prefix");
+ if ($mtime > time) {
+ plog('INFO', "Too early to retry $prefix, waiting until " . localtime($mtime));
$pkg_tree{$prefix}{media}{$media}{later}{$arch} = 1;
} else {
$pkg_tree{$prefix}{media}{$media}{retries}{arch}{nb_failures} = $nb_failures;