Fixes: 909e899
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
branch = step.getProperty("branch")
return branch and branches[branch].get("kmod_archive")
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]
def GetBaseVersion(branch):
if re.match(r"^[^-]+-[0-9]+\.[0-9]+$", branch):
return branch.split('-')[1]
haltOnFailure = True,
logEnviron = False,
locks = NetLockUl,
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(
))
factory.addStep(ShellCommand(