aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/files/Mageia.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2018-06-05 20:28:25 +0000
committerPascal Terjan <pterjan@mageia.org>2018-06-05 20:28:25 +0000
commitc7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e (patch)
tree677839b280e75dd723b7bda15c1028939fc7a66b /modules/buildsystem/files/Mageia.pm
parentcddf5d4add787caaa38aeb0ec8f1989aa818a7d5 (diff)
downloadpuppet-c7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e.tar
puppet-c7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e.tar.gz
puppet-c7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e.tar.bz2
puppet-c7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e.tar.xz
puppet-c7666bf75aa96754cc5bab38aa0dc4b7ad97ab7e.zip
Only prevent submitting if the package is already in same queue
Diffstat (limited to 'modules/buildsystem/files/Mageia.pm')
-rw-r--r--modules/buildsystem/files/Mageia.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/buildsystem/files/Mageia.pm b/modules/buildsystem/files/Mageia.pm
index 74f83a75..443f6cb7 100644
--- a/modules/buildsystem/files/Mageia.pm
+++ b/modules/buildsystem/files/Mageia.pm
@@ -442,6 +442,7 @@ sub get_upload_newer_revisions {
my @packages;
foreach my $state (@{$self->{_upload_state}}) {
foreach my $m (keys %{$media->{$arch}}) {
+ next if defined($user_context->{section}) and $user_context->{section} ne $m;
my $path = "$self->{_upload_root}/$state/$target/$m";
print "Looking for package $package revisions for $target in $path (pattern $pattern)\n" if $self->{_verbose};
find(