com web/rmtools: don't check for package existence, pass directly to pickle: client/include/PickleExt.php client/script/pickle.php
| From: | Anatol Belski | Date: | Tue, 05 May 2015 20:36:49 +0000 |
| Subject: | com web/rmtools: don't check for package existence, pass directly to pickle: client/include/PickleExt.php client/script/pickle.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26003@lists.php.net to get a copy of this message | ||
Commit: 0657beaf50d9fd5b8511842ee1797dbc5c38f91e
Author: Anatol Belski <ab@php.net> Tue, 5 May 2015 22:36:49 +0200
Parents: d08783a49b58328c466647d58ce41ce6e198f675
Branches: master pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=0657beaf50d9fd5b8511842ee1797dbc5c38f91e
Log:
don't check for package existence, pass directly to pickle
Changed paths:
M client/include/PickleExt.php
M client/script/pickle.php
Diff:
diff --git a/client/include/PickleExt.php b/client/include/PickleExt.php
index ef5468d..c401011 100644
--- a/client/include/PickleExt.php
+++ b/client/include/PickleExt.php
@@ -18,10 +18,6 @@ class PickleExt
public function __construct($pkg_uri, $build)
{
- if (!file_exists($pkg_uri)) {
- throw new \Exception("'$pkg_uri' does not exist");
- }
-
$this->pkg_uri = $pkg_uri;
$this->build = $build;
}
diff --git a/client/script/pickle.php b/client/script/pickle.php
index cf31435..90ebd19 100644
--- a/client/script/pickle.php
+++ b/client/script/pickle.php
@@ -67,7 +67,6 @@ foreach ($builds as $build_name) {
try {
$ext->init();
- var_dump($ext->getPackageConfig());
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;