Commit: 5b99baa6eb3f5cd0cfdc052c6f9407ea3a4fc04d Author: Anatol Belski <[email protected]> Sat, 19 Nov 2016 21:04:20 +0100 Parents: ff278ad2e2ef91bee9b2b169507b4c4569be99cb Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=5b99baa6eb3f5cd0cfdc052c6f9407ea3a4fc04d Log: add the actual deps update method Changed paths: M include/BuildVC.php Diff: diff --git a/include/BuildVC.php b/include/BuildVC.php index 6efd7ae..65926f0 100644 --- a/include/BuildVC.php +++ b/include/BuildVC.php @@ -96,6 +96,18 @@ class BuildVC { $zip->close(); } + function updateDeps(string $stability = "stable") + { + $branch = $this->branch->config->getBranch(); + $cmd = "phpsdk_deps -u -s $stability -b $branch -d " . dirname($this->build_dir) . "/deps"; + $ret = exec_single_log($cmd, $this->build_dir, $this->env); + if (!$ret) { + throw new \Exception('dependencies update failed'); + } + + return $ret; + } + function buildconf() { $cmd = 'buildconf'; -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
