com web/rmtools: Check also for "all": include/Branch.php
| From: | Anatol Belski | Date: | Mon, 18 Sep 2017 17:41:00 +0000 |
| Subject: | com web/rmtools: Check also for "all": include/Branch.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26412@lists.php.net to get a copy of this message | ||
Commit: 6659d824d1a42db91fcf8aaa117abae3f4dfc316
Author: Anatol Belski <ab@php.net> Mon, 18 Sep 2017 19:41:00 +0200
Parents: d7f919649b7732510222164a1771331416b2e352
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=6659d824d1a42db91fcf8aaa117abae3f4dfc316
Log:
Check also for "all"
Changed paths:
M include/Branch.php
Diff:
diff --git a/include/Branch.php b/include/Branch.php
index 53f0bab..c26cc21 100644
--- a/include/Branch..php
+++ b/include/Branch.php
@@ -75,7 +75,7 @@ class Branch {
$builds = $this->config->getBuildList();
if (!empty($builds)) {
- if ($build_name) {
+ if ($build_name && "all" != $build_name) {
if (in_array($build_name, $this->data->builds) && $this->hasUnfinishedBuild())
{
throw new \Exception("Builds for '$build_name' are already done or in
progress");
}