diff --git a/src/backend/bs_getbinariesproxy b/src/backend/bs_getbinariesproxy index bd093c77625..b7fa54c6e32 100755 --- a/src/backend/bs_getbinariesproxy +++ b/src/backend/bs_getbinariesproxy @@ -188,6 +188,7 @@ sub getbinaries { push @args, "repository=$repoid"; push @args, "arch=$arch"; push @args, "nometa" if $nometa; + push @args, map {"module=$_"} @{$cgi->{'module'} || []}; push @args, "binaries=".join(',', @missingbvs); my $bvl; eval { @@ -300,6 +301,7 @@ sub getbinaries { push @args, "project=$projid"; push @args, "repository=$repoid"; push @args, "arch=$arch"; + push @args, map {"module=$_"} @{$cgi->{'module'} || []}; my $res = BSRPC::rpc({ 'uri' => "$server/getbinaries", 'directory' => $cachetmpdir, @@ -406,7 +408,7 @@ sub hello { my $dispatches = [ '/' => \&hello, - '/getbinaries $project $repository $arch binaries: nometa:bool? metaonly:bool? workerid? server:' => \&getbinaries, + '/getbinaries $project $repository $arch binaries: nometa:bool? metaonly:bool? module* workerid? server:' => \&getbinaries, '/getpreinstallimage $prpa $hdrmd5:md5 path: sizek:num? workerid? server:' => \&getpreinstallimage, ]; diff --git a/src/backend/bs_worker b/src/backend/bs_worker index 04f1bec9ade..e813a5a06eb 100755 --- a/src/backend/bs_worker +++ b/src/backend/bs_worker @@ -1924,6 +1924,7 @@ sub getpreinstallimage { push @args, "repository=$repo->{'repository'}"; push @args, "arch=$buildinfo->{'arch'}"; push @args, "nometa" if $nometa; + push @args, map {"module=$_"} @{$buildinfo->{'module'} || []}; push @args, "binaries=".join(',', @bins); my $bvl; eval { @@ -2165,6 +2166,7 @@ sub getbinaries_buildenv { push @args, "repository=$repo->{'repository'}"; push @args, "arch=$arch"; push @args, 'nometa'; + push @args, map {"module=$_"} @{$buildinfo->{'module'} || []}; push @args, "binaries=".join(',', @needed_names); my $bvl; eval { @@ -2237,6 +2239,7 @@ sub getbinaries_buildenv { my $projid = $repo->{'project'}; my $repoid = $repo->{'repository'}; my $param; + my @args; unlink("$dir/$bv->{'name'}"); if ($bv->{'package'}) { $param = { @@ -2246,6 +2249,7 @@ sub getbinaries_buildenv { 'filename' => "$dir/$bv->{'name'}", }; } else { + push @args, map {"module=$_"} @{$buildinfo->{'module'} || []}; $param = { 'uri' => "$server/build/$projid/$repoid/$arch/_repository/$bv->{'name'}", 'timeout' => $gettimeout, @@ -2254,7 +2258,7 @@ sub getbinaries_buildenv { }; } eval { - BSRPC::rpc($param); + BSRPC::rpc($param, undef, @args); }; if ($@) { warn($@);