Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Factory checked in at 2019-10-30 14:43:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old) and /work/SRC/openSUSE:Factory/.platformsh-cli.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "platformsh-cli" Wed Oct 30 14:43:07 2019 rev:84 rq:743602 version:3.49.2 Changes: -------- --- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes 2019-10-21 12:28:08.063942584 +0200 +++ /work/SRC/openSUSE:Factory/.platformsh-cli.new.2990/platformsh-cli.changes 2019-10-30 14:43:08.625884071 +0100 @@ -1,0 +2,11 @@ +Mon Oct 28 00:01:19 UTC 2019 - ji...@boombatower.com + +- Update to version 3.49.2: + * Release v3.49.2 + * Fix drush command quoting/escaping when a single quoted command is used (#861) + * Fix "multi" command only acting on the first project (repeatedly) (#862) + * Revert "Fix ssh argument escaping" + * Fix ssh argument escaping + * Recommend tunnel:single from tunnel:open if extensions are missing + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.49.1.tar.xz New: ---- platformsh-cli-3.49.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.87hqK8/_old 2019-10-30 14:43:09.261884747 +0100 +++ /var/tmp/diff_new_pack.87hqK8/_new 2019-10-30 14:43:09.261884747 +0100 @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.49.1 +Version: 3.49.2 Release: 0 Summary: Tool for managing Platform.sh services from the command line # See licenses.txt for dependency licenses. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.87hqK8/_old 2019-10-30 14:43:09.289884777 +0100 +++ /var/tmp/diff_new_pack.87hqK8/_new 2019-10-30 14:43:09.289884777 +0100 @@ -2,7 +2,7 @@ <service name="tar_scm" mode="disabled"> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">refs/tags/v3.49.1</param> + <param name="revision">refs/tags/v3.49.2</param> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> <param name="scm">git</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.87hqK8/_old 2019-10-30 14:43:09.305884794 +0100 +++ /var/tmp/diff_new_pack.87hqK8/_new 2019-10-30 14:43:09.309884798 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">8540e6fb67ad2877e0cd4381cfdcd4399fb1d9c1</param> + <param name="changesrevision">fd65c82831cc8ca6d48d3d57fb52cdceff0e9b5b</param> </service> </servicedata> ++++++ platformsh-cli-3.49.1.tar.xz -> platformsh-cli-3.49.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.49.1/dist/manifest.json new/platformsh-cli-3.49.2/dist/manifest.json --- old/platformsh-cli-3.49.1/dist/manifest.json 2019-10-12 14:16:45.000000000 +0200 +++ new/platformsh-cli-3.49.2/dist/manifest.json 2019-10-25 22:09:07.000000000 +0200 @@ -17,10 +17,10 @@ }, { "name": "platform.phar", - "sha1": "52c2e23f509ba1bfadc2a17da20c459cd23ad698", - "sha256": "602c6fb305b0c8620f1fcae8e6659c58dd163b8446aa3df614c22f332aed7b84", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.49.1/platform.phar", - "version": "3.49.1", + "sha1": "cf9fc3eaa8d8bdb5236292c93c7c71f9ccfbf48d", + "sha256": "21c7a95600043cf6cd713294f1254716e81553df1c809f4fb6b4209d9908d4f1", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.49.2/platform.phar", + "version": "3.49.2", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.49.1/src/Command/CommandBase.php new/platformsh-cli-3.49.2/src/Command/CommandBase.php --- old/platformsh-cli-3.49.1/src/Command/CommandBase.php 2019-10-12 14:16:45.000000000 +0200 +++ new/platformsh-cli-3.49.2/src/Command/CommandBase.php 2019-10-25 22:09:07.000000000 +0200 @@ -129,6 +129,12 @@ $this->container()->set('input', $input); $this->stdErr = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output; + // Clear cache properties, in case this object is being reused with + // separate input. + $this->project = null; + $this->environment = null; + $this->remoteContainer = null; + if ($this->config()->get('api.debug')) { $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.49.1/src/Command/Environment/EnvironmentDrushCommand.php new/platformsh-cli-3.49.2/src/Command/Environment/EnvironmentDrushCommand.php --- old/platformsh-cli-3.49.1/src/Command/Environment/EnvironmentDrushCommand.php 2019-10-12 14:16:45.000000000 +0200 +++ new/platformsh-cli-3.49.2/src/Command/Environment/EnvironmentDrushCommand.php 2019-10-25 22:09:07.000000000 +0200 @@ -27,7 +27,8 @@ Ssh::configureInput($this->getDefinition()); $this->addExample('Run "drush status" on the remote environment', 'status'); $this->addExample('Enable the Overlay module on the remote environment', 'en overlay'); - $this->addExample('Get a one-time login link for n...@example.com (use quotes for complex commands)', "'user-login --mail=n...@example.com'"); + $this->addExample('Get a one-time login link (using -- before options)', 'user-login -- --mail=n...@example.com'); + $this->addExample('Alternative syntax (quoting the whole command)', "'user-login --mail=n...@example.com'"); } public function isHidden() @@ -45,8 +46,12 @@ { $this->validateInput($input); - $drushCommand = $input->getArgument('cmd'); - $drushCommand = implode(' ', array_map([OsUtil::class, 'escapePosixShellArg'], (array) $drushCommand)); + $drushCommand = (array) $input->getArgument('cmd'); + if (count($drushCommand) === 1) { + $drushCommand = reset($drushCommand); + } else { + $drushCommand = implode(' ', array_map([OsUtil::class, 'escapePosixShellArg'], $drushCommand)); + } // Pass through options that the CLI shares with Drush. foreach (['yes', 'no', 'quiet'] as $option) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.49.1/src/Command/Tunnel/TunnelOpenCommand.php new/platformsh-cli-3.49.2/src/Command/Tunnel/TunnelOpenCommand.php --- old/platformsh-cli-3.49.1/src/Command/Tunnel/TunnelOpenCommand.php 2019-10-12 14:16:45.000000000 +0200 +++ new/platformsh-cli-3.49.2/src/Command/Tunnel/TunnelOpenCommand.php 2019-10-25 22:09:07.000000000 +0200 @@ -40,7 +40,21 @@ */ protected function execute(InputInterface $input, OutputInterface $output) { - $this->checkSupport(); + $requiredExtensions = ['pcntl', 'posix']; + $missingExtensions = []; + foreach ($requiredExtensions as $requiredExtension) { + if (!extension_loaded($requiredExtension)) { + $missingExtensions[] = $requiredExtension; + $this->stdErr->writeln(sprintf('The <error>%s</error> PHP extension is required.', $requiredExtension)); + } + } + if (!empty($missingExtensions)) { + $this->stdErr->writeln(''); + $this->stdErr->writeln('The alternative <info>tunnel:single</info> command does not require these extensions.'); + + return 1; + } + $this->validateInput($input); $project = $this->getSelectedProject(); $environment = $this->getSelectedEnvironment(); @@ -183,17 +197,4 @@ return 0; } - - private function checkSupport() - { - $messages = []; - foreach (['pcntl', 'posix'] as $extension) { - if (!extension_loaded($extension)) { - $messages[] = sprintf('The "%s" extension is required.', $extension); - } - } - if (count($messages)) { - throw new \RuntimeException(implode("\n", $messages)); - } - } } ++++++ platformsh-cli-vendor.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/autoload.php new/vendor/autoload.php --- old/vendor/autoload.php 2019-10-15 16:36:13.186643290 +0200 +++ new/vendor/autoload.php 2019-10-28 01:01:23.383440075 +0100 @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit83d6e0eaa0d493b9ac36dda8f1e66f13::getLoader(); +return ComposerAutoloaderInit7e31159215f7bdd480e8d91b2aacfc84::getLoader(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_real.php new/vendor/composer/autoload_real.php --- old/vendor/composer/autoload_real.php 2019-10-15 16:36:13.186643290 +0200 +++ new/vendor/composer/autoload_real.php 2019-10-28 01:01:23.383440075 +0100 @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit83d6e0eaa0d493b9ac36dda8f1e66f13 +class ComposerAutoloaderInit7e31159215f7bdd480e8d91b2aacfc84 { private static $loader; @@ -19,15 +19,15 @@ return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit83d6e0eaa0d493b9ac36dda8f1e66f13', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit7e31159215f7bdd480e8d91b2aacfc84', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit83d6e0eaa0d493b9ac36dda8f1e66f13', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit7e31159215f7bdd480e8d91b2aacfc84', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire83d6e0eaa0d493b9ac36dda8f1e66f13($fileIdentifier, $file); + composerRequire7e31159215f7bdd480e8d91b2aacfc84($fileIdentifier, $file); } return $loader; } } -function composerRequire83d6e0eaa0d493b9ac36dda8f1e66f13($fileIdentifier, $file) +function composerRequire7e31159215f7bdd480e8d91b2aacfc84($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_static.php new/vendor/composer/autoload_static.php --- old/vendor/composer/autoload_static.php 2019-10-15 16:36:13.186643290 +0200 +++ new/vendor/composer/autoload_static.php 2019-10-28 01:01:23.383440075 +0100 @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13 +class ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84 { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -193,9 +193,9 @@ public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit83d6e0eaa0d493b9ac36dda8f1e66f13::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit7e31159215f7bdd480e8d91b2aacfc84::$classMap; }, null, ClassLoader::class); }