Skip to content

Commit

Permalink
[backend] fix os-release spec file syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 6, 2014
1 parent 31b0451 commit aa49070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/bs_productconvert
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,9 @@ sub createOsReleaseFile ($) {
my $name = $product->{'name'};
# shall we strip ^SUSE_ here or better modify the name in SLE 12?
$os_release_file .= "NAME=\"".$name."\"\n";
$os_release_file .= "VERSION=\"%{version}%{betaversion?: }%{betaversion}\"\n";
$os_release_file .= "VERSION_ID=\"%{version}%{betaversion?: }%{betaversion}\"\n";
$os_release_file .= "PRETTY_NAME=\"".$product->{'summary'}."\"\n" if $product->{'summary'};
$os_release_file .= "VERSION=\"%{version}%{?betaversion: }%{?betaversion}\"\n";
$os_release_file .= "VERSION_ID=\"%{version}%{?betaversion?: }%{?betaversion}\"\n";
$os_release_file .= "PRETTY_NAME=\"".$product->{'summary'}[0]->{_content}."\"\n" if $product->{'summary'};
$os_release_file .= "BUG_REPORT_URL=\"".$bugtracker."\"\n" if $bugtracker;
$os_release_file .= "ID=\"".lc($name)."\"\n";
$os_release_file .= "ANSI_COLOR=\"0;32\"\n";
Expand Down

0 comments on commit aa49070

Please sign in to comment.