Skip to content
Permalink
Browse files

Nightly build release info generation updated when Unreleased section…

… is missing
  • Loading branch information
jindrapetrik committed Jan 18, 2018
1 parent c842b17 commit 56302e6e9048b68f58866757dc1bfd48fe921690
Showing with 10 additions and 2 deletions.
  1. +10 −2 travis/format_release_info.php
@@ -217,8 +217,16 @@ function get_changelog_section($changelog_file, $section_name) {
$changelog_data = get_changelog_section($changelog_path,$changelog_section);
if($changelog_data === false)
{
fwrite(STDERR, "Cannot load changelog data\n");
exit(1);
if($is_prerelease)
{
//[Unreleased section may be missing]
$changelog_data = "";
}
else
{
fwrite(STDERR, "Cannot load changelog data\n");
exit(1);
}
}
$full_changelog = file_get_contents($changelog_path);
if(preg_match_all('/\[([^\]]+)\][^(]/', $changelog_data."\n",$m))

0 comments on commit 56302e6

Please sign in to comment.
You can’t perform that action at this time.