From 7170818fda5d95f449636213172890005dd12ddc Mon Sep 17 00:00:00 2001 From: Pascal Terjan <pterjan@mageia.org> Date: Mon, 30 Apr 2018 11:42:35 +0000 Subject: Don't report ok status until we are done copying files This is very unlikely to be a bug as we don't write this status to the file at that time anyway but this is more correct. --- iurt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iurt b/iurt index f663a10..56073ae 100755 --- a/iurt +++ b/iurt @@ -865,8 +865,8 @@ retry: print $f "$srpm build ok"; } - $run{status}{$srpm} = 'ok'; if ($run{debug}) { + $run{status}{$srpm} = 'ok'; plog("debug mode, skip other packages"); exit(); } elsif ($run{group}) { @@ -900,6 +900,7 @@ retry: } } } + $run{status}{$srpm} = 'ok'; return $srpm; } -- cgit v1.2.1