Skip to content

Commit

Permalink
[backend] write cpeid to suse tags for mediastyle suse-sle12 and suse…
Browse files Browse the repository at this point in the history
…-13 and higher
  • Loading branch information
adrianschroeter committed Jan 22, 2014
1 parent 81bd1e3 commit c6419eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/bs_productconvert
Expand Up @@ -288,7 +288,6 @@ sub createProductOptions($$$)
$varsH{DISTNAME} = $product->{'name'};
$varsH{VERSION} = $product->{'version'};
$varsH{FLAVOR} = $medium->{'flavor'};
$varsH{CPEID} = getCpeId($prodRef, $product);
$varsH{PRODUCT_DIR} = "/";
$varsH{PRODUCT_NAME} = '$DISTNAME-$FLAVOR';
$varsH{PRODUCT_VERSION} = '$VERSION';
Expand Down Expand Up @@ -331,6 +330,9 @@ sub createProductOptions($$$)
if (defined($medium->{'preselected_patterns'})){
$info{'PATTERNS'} .= join(' ',map( $_->{'name'},@{$medium->{'preselected_patterns'}->[0]->{'pattern'}}));
}
unless($mediaStyle =~ "^suse-11" || $mediaStyle =~ "^suse-12" || $mediaStyle =~ "^suse-sle11") {
$info{CPEID} = getCpeId($prodRef, $product);
}
foreach my $summary ( @{$product->{'summary'}} ){
$info{'LABEL'} = $summary->{'_content'} if ( ! $summary->{'language'} );
}
Expand Down

0 comments on commit c6419eb

Please sign in to comment.