branch = step.getProperty("branch")
return branch and branches[branch].get("kmod_archive")
+def IsKmodArchiveAndRsyncEnabled(step):
+ branch = step.getProperty("branch")
+ return bool(IsKmodArchiveEnabled(step) and branches[branch].get("bin_url"))
+
def GetBaseVersion(branch):
if re.match(r"^[^-]+-[0-9]+\.[0-9]+$", branch):
return branch.split('-')[1]
haltOnFailure = True,
logEnviron = False,
locks = NetLockUl,
- doStepIf = util.Transform(lambda a, b: bool(a and b), IsKmodArchiveEnabled, GetRsyncParams.withArgs("bin", "url")),
+ doStepIf = IsKmodArchiveAndRsyncEnabled,
))
factory.addStep(ShellCommand(