1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-30 14:08:11 +02:00

Fix some logic in WaitForPreviousBuildStep

Summary: Fixes T5062. See inlines.

Test Plan: Did not test whatsoever.

Reviewers: hach-que

Reviewed By: hach-que

Subscribers: epriestley

Maniphest Tasks: T5062

Differential Revision: https://secure.phabricator.com/D9132
This commit is contained in:
epriestley 2014-05-15 07:36:44 -07:00
parent f2c0e94ea8
commit 702f073f0a

View file

@ -73,6 +73,7 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
}
}
if ($build_objects) {
$buildables = id(new HarbormasterBuildableQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withBuildablePHIDs($build_objects)
@ -80,10 +81,7 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
->execute();
$buildable_phids = mpull($buildables, 'getPHID');
if (!$buildable_phids) {
return array();
}
if ($buildable_phids) {
$builds = id(new HarbormasterBuildQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withBuildablePHIDs($buildable_phids)
@ -95,6 +93,8 @@ final class HarbormasterWaitForPreviousBuildStepImplementation
$blockers[] = pht('Build %d', $build->getID());
}
}
}
}
return $blockers;
}