aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2018-04-30 11:42:35 +0000
committerPascal Terjan <pterjan@mageia.org>2018-06-02 16:37:08 +0000
commit7170818fda5d95f449636213172890005dd12ddc (patch)
tree8dedda10d6574acc960e9c261b84e60420884fcf
parent4f1d24e6ffb5f0425a33bbc1c0f5e4f5ea2a1032 (diff)
downloadiurt-7170818fda5d95f449636213172890005dd12ddc.tar
iurt-7170818fda5d95f449636213172890005dd12ddc.tar.gz
iurt-7170818fda5d95f449636213172890005dd12ddc.tar.bz2
iurt-7170818fda5d95f449636213172890005dd12ddc.tar.xz
iurt-7170818fda5d95f449636213172890005dd12ddc.zip
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.
-rwxr-xr-xiurt3
1 files changed, 2 insertions, 1 deletions
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;
}