blob: b28500d2a74d91abd068821457a79c06e2020384 [file] [log] [blame]
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def CheckBreakingInstallerVersionBumpNeeded(input_api, output_api):
files = []
breaking_version_installer_updated = False
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
breaking_version_installer_updated |= (f.LocalPath() ==
if (f.LocalPath() == 'chrome/installer/mini_installer/chrome.release' or
if files and not breaking_version_installer_updated:
return [output_api.PresubmitPromptWarning('''
Update chrome/installer/setup/ if the changes
found in the following files might break make downgrades not possible beyond
this browser's version.''', items=files)]
if not files and breaking_version_installer_updated:
return [output_api.PresubmitPromptWarning('''
No installer breaking changes detected but
chrome/installer/setup/ was updated. Please
update chrome/installer/ if more files need to be watched for
breaking installer changes.''')]
return []