Skip to content

Commit

Permalink
[backend] getbuildinfo_post: use getprojpack without flavor and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lethliel committed Dec 4, 2018
1 parent 0a8f403 commit 198bca3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/backend/bs_repserver
Original file line number Diff line number Diff line change
Expand Up @@ -3044,19 +3044,17 @@ sub getbuildinfo_post {
}
close(F);

undef $packid if $packid eq '_repository';

my $bconf = BSRepServer::getconfig($projid, $repoid, $arch);
$bconf->{'type'} = $cgi->{'_buildtype'} if $cgi->{'_buildtype'};
if (defined($packid)) {
$bconf->{'obspackage'} = $packid;
if ($packid =~ /(?<!^_product)(?<!^_patchinfo):./) {
$packid =~ /^(.*):(.*?)$/;
$bconf->{'obspackage'} = $1;
$packid = $1;
$bconf->{'buildflavor'} = $2;
undef $packid if $1 eq '_repository';
}
undef $packid if $packid eq '_repository';
}
$bconf->{'obspackage'} = $packid if defined $packid;
my $d = Build::parse_typed($bconf, $fn, $bconf->{'type'});
unlink($fn);
die("unknown repository type $bconf->{'type'}\n") unless $d;
Expand Down

0 comments on commit 198bca3

Please sign in to comment.