This commit is contained in:
Andrei Yankovich 2021-03-30 17:21:02 +03:00
parent 5553e1fbef
commit 0ff555d92d

View File

@ -269,30 +269,31 @@ class Make(BaseModule):
def doForce(steps): def doForce(steps):
return getPreviousStepStatus(steps) return getPreviousStepStatus(steps)
factory.addStep( factory.addSteps([
steps.Git( steps.Git(
repourl=util.Interpolate('%(prop:repository)s'), repourl=util.Interpolate('%(prop:repository)s'),
branch=util.Interpolate('%(prop:branch)s'), branch=util.Interpolate('%(prop:branch)s'),
mode='full', mode='full',
method='fresh', method='fresh',
submodules=True, submodules=True,
warnOnFailure=True, warnOnFailure=True,
haltOnFailure=False, haltOnFailure=False,
name='git operations', name='git operations',
description='operations of git like pull clone fetch', description='operations of git like pull clone fetch',
), ),
steps.Git( steps.Git(
repourl=util.Interpolate('%(prop:repository)s'), repourl=util.Interpolate('%(prop:repository)s'),
branch=util.Interpolate('%(prop:branch)s'), branch=util.Interpolate('%(prop:branch)s'),
mode='full', mode='full',
method='clobber', method='clobber',
submodules=True, submodules=True,
name='git operations force', name='git operations force',
doStepIf=doForce, doStepIf=doForce,
description='operations of git like pull clone' + description='operations of git like pull clone' +
'fetch (force remove all old data)', 'fetch (force remove all old data)',
) )
]
) )
# factory.addStep(self.checkSupportedBuildSystems()) # factory.addStep(self.checkSupportedBuildSystems())