Skip to content

Commit fcd0e22

Browse files
committed
Do not put the whole changelog into the package for pgautofailover
1 parent 7143108 commit fcd0e22

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

automated_packaging/update_os_package.pl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ sub get_changelog_for_debian {
8383
if ( $DISTRO_VERSION eq "redhat" || $DISTRO_VERSION eq "microsoft" || $DISTRO_VERSION eq "all") {
8484
`sed -i 's|^Version:.*|Version: $VERSION.citus|g' $package_name.spec`;
8585
`sed -i 's|^Source0:.*|Source0: https:\/\/github.com\/citusdata\/$package_name\/archive\/v$VERSION.tar.gz|g' $package_name.spec`;
86-
`sed -i 's|^%changelog|%changelog\\n* $abbr_day[$wday] $abbr_mon[$mon] $mday $year - $git_name <$microsoft_email> $VERSION.citus-1\\n- Update to $log_repo_name $VERSION\\n|g' $package_name.spec`;
86+
`sed -i 's|^%changelog|%changelog\\n* $abbr_day[$wday] $abbr_mon[$mon] $mday $year - $git_name <$microsoft_email> $VERSION.citus-1\\n- Official $VERSION release of $log_repo_name\\n|g' $package_name.spec`;
8787
}
8888
if ( $DISTRO_VERSION eq "debian" || $DISTRO_VERSION eq "microsoft" || $DISTRO_VERSION eq "all") {
8989
open( DEB_CLOG_FILE, "<./debian/changelog" ) || die "Debian changelog file not found";
@@ -92,12 +92,21 @@ sub get_changelog_for_debian {
9292

9393
# Change hour and get changelog (TODO: may update it !)
9494
$print_hour = $hour - 3;
95-
@changelog_print = get_changelog_for_debian();
95+
if ($PROJECT eq 'citus' || $PROJECT eq 'enterprise') {
96+
@changelog_print = get_changelog_for_debian();
97+
}
98+
9699

97100
# Update the changelog file of the debian branch
98101
open( DEB_CLOG_FILE, ">./debian/changelog" ) || die "Debian changelog file not found";
99102
print DEB_CLOG_FILE "$package_name ($VERSION.citus-1) stable; urgency=low\n";
100-
print DEB_CLOG_FILE @changelog_print;
103+
if ($PROJECT eq 'citus' || $PROJECT eq 'enterprise') {
104+
print DEB_CLOG_FILE @changelog_print;
105+
}
106+
else
107+
{
108+
print DEB_CLOG_FILE "\n * Official $VERSION release of $log_repo_name\n\n";
109+
}
101110
print DEB_CLOG_FILE " -- $git_name <$microsoft_email> $abbr_day[$wday], $mday $abbr_mon[$mon] $year $print_hour:$min:$sec +0000\n\n";
102111
print DEB_CLOG_FILE @lines;
103112
close(DEB_CLOG_FILE);

0 commit comments

Comments
 (0)