com web/rmtools: Fix skip for non requested build type: script/snap.php
| From: | Anatol Belski | Date: | Fri, 15 Sep 2017 20:49:11 +0000 |
| Subject: | com web/rmtools: Fix skip for non requested build type: script/snap.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26407@lists.php.net to get a copy of this message | ||
Commit: f22c2591172301ca7fbd225cf0d86d74c4dff35a
Author: Anatol Belski <ab@php.net> Fri, 15 Sep 2017 22:49:11 +0200
Parents: 1a51e1d9cc8d8285c3b8360828460b5241274783
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=f22c2591172301ca7fbd225cf0d86d74c4dff35a
Log:
Fix skip for non requested build type
Changed paths:
M script/snap.php
Diff:
diff --git a/script/snap.php b/script/snap.php
index eae659c..2f64dc8 100644
--- a/script/snap.php
+++ b/script/snap.php
@@ -89,8 +89,8 @@ if ($branch->hasNewRevision() || $branch->hasUnfinishedBuild() || $force) {
$build_errors = array();
foreach ($builds as $build_name) {
- if (strcmp($build_type, 'all') != 0) {
- if (substr_compare($build_name, $build_type, 0, 2) != 0) { // i.e. nts-windows-vc9-x86
+ if ($build_type != 'all') {
+ if ($build_name != $build_type) { // i.e. nts-windows-vc9-x86
continue;
}
else {