From: Martin Liska Date: Tue, 2 Aug 2022 08:50:07 +0000 (+0200) Subject: gcc-changelog: do not run extra deduction X-Git-Tag: basepoints/gcc-14~5280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d074293824cf8d4b24f00d94013124214e6fe5;p=thirdparty%2Fgcc.git gcc-changelog: do not run extra deduction Do not deduce changelog for root ChangeLog (''). contrib/ChangeLog: * gcc-changelog/git_commit.py: Do not deduce changelog for root ChangeLog. --- diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index a6b5ff04f22..7f6ff87ba99 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -626,7 +626,7 @@ class GitCommit: def deduce_changelog_locations(self): for entry in self.changelog_entries: - if not entry.folder: + if entry.folder is None: changelog = None for file in entry.files: location = self.get_file_changelog_location(file)