Instruction uses all of its entries.
parent
1045502d8a
commit
5973687855
|
@ -26,14 +26,15 @@ class Package::Instructions
|
||||||
|
|
||||||
def run(context : Context, recipe : Recipe) : BuildStatus
|
def run(context : Context, recipe : Recipe) : BuildStatus
|
||||||
if size > 0
|
if size > 0
|
||||||
# FIXME: Maybe do that for [1] and the others, no?
|
each do |command|
|
||||||
child = context.run recipe.building_directory, "sh", ["-c", self[0]]
|
child = context.run recipe.building_directory, "sh", ["-c", command]
|
||||||
|
|
||||||
if child.exit_status == 0
|
if child.exit_status != 0
|
||||||
return BuildStatus::Success
|
return BuildStatus::Failed
|
||||||
else
|
end
|
||||||
return BuildStatus::Failed
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return BuildStatus::Success
|
||||||
end
|
end
|
||||||
|
|
||||||
context.building_backends.select(&.phase.==(@phase)).each do |backend|
|
context.building_backends.select(&.phase.==(@phase)).each do |backend|
|
||||||
|
|
Reference in New Issue