Skip to content

Commit

Permalink
[backend] getbuildinfo: do not ask src server about all projects in t…
Browse files Browse the repository at this point in the history
…he _obsrepositories case
  • Loading branch information
mlschroe committed Jan 7, 2014
1 parent 7b2373c commit 40da8da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/backend/bs_repserver
Expand Up @@ -2559,10 +2559,13 @@ sub getbuildinfo {
my $kiwitype;
if ($packtype eq 'kiwi') {
if (@{$info->{'path'} || []}) {
# fill in all remotemap entries we need
@args = map {"project=$_->{'project'}"} grep {$_->{'project'} ne '_obsrepositories'} @{$info->{'path'}};
push @args, "partition=$BSConfig::partition" if $BSConfig::partition;
my $pp = BSRPC::rpc("$BSConfig::srcserver/getprojpack", $BSXML::projpack, 'withremotemap', 'nopackages', @args);
%remotemap = (%remotemap, map {$_->{'project'} => $_} @{$pp->{'remotemap'} || []});
if (@args) {
push @args, "partition=$BSConfig::partition" if $BSConfig::partition;
my $pp = BSRPC::rpc("$BSConfig::srcserver/getprojpack", $BSXML::projpack, 'withremotemap', 'nopackages', @args);
%remotemap = (%remotemap, map {$_->{'project'} => $_} @{$pp->{'remotemap'} || []});
}
}
if ($info->{'imagetype'} && $info->{'imagetype'}->[0] eq 'product') {
$kiwitype = 'product';
Expand Down

0 comments on commit 40da8da

Please sign in to comment.