com web/rmtools: add the actual deps update method: include/BuildVC.php
| From: | Anatol Belski | Date: | Sat, 19 Nov 2016 20:04:20 +0000 |
| Subject: | com web/rmtools: add the actual deps update method: include/BuildVC.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25891@lists.php.net to get a copy of this message | ||
Commit: 5b99baa6eb3f5cd0cfdc052c6f9407ea3a4fc04d
Author: Anatol Belski <ab@php.net> 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';