Skip to content

Commit

Permalink
[backend] do not hide CI_CNT in product build numbers when not using …
Browse files Browse the repository at this point in the history
…the product converter
  • Loading branch information
adrianschroeter committed Feb 4, 2014
1 parent f051a97 commit 121732b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,15 @@ sub patchproductkiwi {
$repo_only = 1 if $productvar->{'name'} eq 'REPO_ONLY' and $productvar->{'_content'} eq 'true';
if ($productvar->{'name'} eq 'MEDIUM_NAME') {
my $mediumbase = $productvar->{'_content'};
$mediumbase .= sprintf("-Build%04d", $buildinfo->{'bcnt'} || 0);
my $cicnt = $buildinfo->{'versrel'};
$cicnt =~ s/.*-//;
if ($cicnt eq "1") {
# simple case for standard productconverter case
$mediumbase .= sprintf("-Build%04d", $buildinfo->{'bcnt'} || 0);
} else {
# standard CI_CNT-BCNT writing
$mediumbase .= sprintf("-Build%s.%d", $cicnt, $buildinfo->{'bcnt'} || 0);
}
pop @vars;
push @vars, { 'name' => 'BUILD_ID', '_content' => $mediumbase };
push @vars, { 'name' => 'MEDIUM_NAME', '_content' => "$mediumbase-Media" };
Expand Down

0 comments on commit 121732b

Please sign in to comment.