diff options
author | Pascal Terjan <pterjan@mageia.org> | 2019-11-02 11:17:36 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2019-11-02 11:17:36 +0000 |
commit | 689de43220800a71cdb80ac03b7c38fe6e0fe8e2 (patch) | |
tree | 83bd6cde4092365e358322c138d6c9dd20fc0ec4 /emi | |
parent | 3a8b9560ccd568a1b1e97990a0b3da3f58b5d244 (diff) | |
download | iurt-689de43220800a71cdb80ac03b7c38fe6e0fe8e2.tar iurt-689de43220800a71cdb80ac03b7c38fe6e0fe8e2.tar.gz iurt-689de43220800a71cdb80ac03b7c38fe6e0fe8e2.tar.bz2 iurt-689de43220800a71cdb80ac03b7c38fe6e0fe8e2.tar.xz iurt-689de43220800a71cdb80ac03b7c38fe6e0fe8e2.zip |
emi: Fix bug introduce in previous commit
It moved the creation of .upload too early, potentially before
metadata was updated when several packages were uploaded at once.
Diffstat (limited to 'emi')
-rwxr-xr-x | emi | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -32,7 +32,7 @@ use Iurt::Config qw(config_usage config_init); use Iurt::Process qw(check_pid); use Iurt::Queue qw(get_upload_tree_state); use Iurt::Util qw(plog_init plog); -use Iurt::Emi qw(find_prefixes_ready_to_upload upload_prefix_in_media); +use Iurt::Emi qw(find_prefixes_ready_to_upload record_uploaded_packages upload_prefix_in_media); use MDK::Common qw(cat_ touch); my %run; @@ -135,6 +135,12 @@ foreach my $target (keys %targets) { foreach my $prefix (keys %is_finisher) { upload_prefix_in_media($config, \%pkg_tree, $prefix, $media, 1); } + + # Now that the finishers are done, metadata was updated so the packages are available + foreach my $prefix (@{$targets{$target}{$media}{to_upload}}) { + my $path = $pkg_tree{$prefix}{media}{$media}{path}; + record_uploaded_packages($config, \%pkg_tree, $prefix, $media) unless -f "$reject/$path/$prefix.youri";; + } } } |