Instruction uses all of its entries.
parent
1045502d8a
commit
5973687855
|
@ -26,16 +26,17 @@ 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
|
|
||||||
else
|
|
||||||
return BuildStatus::Failed
|
return BuildStatus::Failed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return BuildStatus::Success
|
||||||
|
end
|
||||||
|
|
||||||
context.building_backends.select(&.phase.==(@phase)).each do |backend|
|
context.building_backends.select(&.phase.==(@phase)).each do |backend|
|
||||||
Dir.cd recipe.building_directory
|
Dir.cd recipe.building_directory
|
||||||
|
|
||||||
|
|
Reference in New Issue