com web/rmtools: fix typo and snap location creation: script/pecl.php script/snap.php
| From: | Anatol Belski | Date: | Sat, 13 May 2017 23:18:18 +0000 |
| Subject: | com web/rmtools: fix typo and snap location creation: script/pecl.php script/snap.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25867@lists.php.net to get a copy of this message | ||
Commit: 53b84660d98b10292401e4a9ee74da833017cc18
Author: Anatol Belski <ab@php.net> Sun, 14 May 2017 01:18:18 +0200
Parents: cb78d10dde415b03bd93ea6b9c338d9986c0d20e
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=53b84660d98b10292401e4a9ee74da833017cc18
Log:
fix typo and snap location creation
Changed paths:
M script/pecl.php
M script/snap.php
Diff:
diff --git a/script/pecl.php b/script/pecl.php
index f2ffd87..cd2a627 100644
--- a/script/pecl.php
+++ b/script/pecl.php
@@ -96,7 +96,7 @@ echo "Branch <$branch_name>" . PHP_EOL;
$build_dir_parent = $branch->config->getBuildLocation();
if (!is_dir($build_dir_parent)) {
- if !(mkdir($build_dir_parent, 0777, true)) {
+ if(!mkdir($build_dir_parent, 0777, true)) {
echo "Couldn't create build location";
exit(-1);
}
diff --git a/script/snap.php b/script/snap.php
index 77fefd5..d960535 100644
--- a/script/snap.php
+++ b/script/snap.php
@@ -86,20 +86,20 @@ for ($i = 0; $i < count($builds_top) && ($force ||
$branch->hasNewRevision()); $
}
}
- if (strlen($last_rev) == 40) {
- $last_rev = substr($last_rev, 0, 7);
- }
- $src_original_path = $branch->createSourceSnap($build_type);
-
$build_dir_parent = $branch->config->getBuildLocation();
if (!is_dir($build_dir_parent)) {
- if !(mkdir($build_dir_parent, 0777, true)) {
+ if(!mkdir($build_dir_parent, 0777, true)) {
echo "Couldn't create build location";
exit(-1);
}
}
+ if (strlen($last_rev) == 40) {
+ $last_rev = substr($last_rev, 0, 7);
+ }
+ $src_original_path = $branch->createSourceSnap($build_type);
+
$toupload_dir = TMP_DIR . '/' . $branch_name . '/r' . $last_rev .
'-builds/';
if (!is_dir($toupload_dir)) {
mkdir($toupload_dir, 0655, true);