Commit: 53b84660d98b10292401e4a9ee74da833017cc18 Author: Anatol Belski <[email protected]> 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); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
