v2.3.0 compatibility

This commit is contained in:
relikd
2020-11-14 20:14:53 +01:00
parent b6c070b8d3
commit 61fc707111

View File

@@ -26,12 +26,12 @@ configs/force-update.ini:
return False return False
return any(path.endswith(x) for x in self.patterns) return any(path.endswith(x) for x in self.patterns)
def on_after_build(self, builder, build_state, source, prog): def on_after_build(self, builder, build_state, source, prog, **extra):
if self.enabled and self.matchesPattern(source): if self.enabled and self.matchesPattern(source):
for artifact in prog.artifacts: for artifact in prog.artifacts:
artifact.set_dirty_flag() artifact.set_dirty_flag()
def on_setup_env(self): def on_setup_env(self, **extra):
prefs = self.get_config() prefs = self.get_config()
endswith = prefs.get('endswith') endswith = prefs.get('endswith')
if endswith is None: if endswith is None: