diff --git a/master.cfg b/master.cfg index 4ea1f311..4b2b8128 100644 --- a/master.cfg +++ b/master.cfg @@ -169,7 +169,7 @@ for w_name in master_config["workers"]: ####### FACTORY CODE -f_quick_build = getQuickBuildFactory('nm', mtrDbPool) +f_quick_build = getQuickBuildFactory("nm", mtrDbPool) f_rpm_autobake = getRpmAutobakeFactory(mtrDbPool) ## f_deb_autobake @@ -384,6 +384,22 @@ for builder in master_config["builders"]: ) ) + +def file_change_hook(change): + changed_files = change.files + properties = {} + for file_path in changed_files: + if fnmatch.fnmatch(file, "debian/*"): + properties["debian_changes"] = True + if fnmatch.fnmatch(file, "cmake/cpack_rpm.cmake"): + properties["debian_changes"] = True + if properties: + properties["save_packages"] = True + return properties + + +c["change_hooks"] = [file_change_hook] + c["logEncoding"] = "utf-8" c["multiMaster"] = True