commit platformsh-cli for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Leap:15.2 checked in at 2020-01-30 15:47:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/platformsh-cli (Old) and /work/SRC/openSUSE:Leap:15.2/.platformsh-cli.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "platformsh-cli" Thu Jan 30 15:47:13 2020 rev:39 rq:768515 version:3.52.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/platformsh-cli/platformsh-cli.changes 2020-01-30 06:09:18.438494804 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.platformsh-cli.new.26092/platformsh-cli.changes 2020-01-30 15:47:38.713303907 +0100 @@ -1,0 +2,10 @@ +Wed Jan 29 16:30:45 UTC 2020 - jimmy@boombatower.com + +- Update to version 3.52.1: + * Release v3.52.1 + * Update dependencies (Symfony -> 3.4.37) + * Update client (oauth2 compatibility) + * Suggest SSH to the Git server to test the connection in 'get' command (#898) + * Pipe to command in db:size to avoid quoting issues on Windows (#899) + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.52.0.tar.xz New: ---- platformsh-cli-3.52.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.WCtseC/_old 2020-01-30 15:47:40.009304297 +0100 +++ /var/tmp/diff_new_pack.WCtseC/_new 2020-01-30 15:47:40.013304298 +0100 @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.52.0 +Version: 3.52.1 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.WCtseC/_old 2020-01-30 15:47:40.041304306 +0100 +++ /var/tmp/diff_new_pack.WCtseC/_new 2020-01-30 15:47:40.045304308 +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.52.0</param> + <param name="revision">refs/tags/v3.52.1</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.WCtseC/_old 2020-01-30 15:47:40.061304313 +0100 +++ /var/tmp/diff_new_pack.WCtseC/_new 2020-01-30 15:47:40.061304313 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">28172cbcf9d23cbce6c0f3449fc9599b0e4229a1</param> + <param name="changesrevision">0f776ae4191f1fe10c015f27c6b7cadcd104c5a5</param> </service> </servicedata> ++++++ licenses.txt ++++++ --- /var/tmp/diff_new_pack.WCtseC/_old 2020-01-30 15:47:40.101304325 +0100 +++ /var/tmp/diff_new_pack.WCtseC/_new 2020-01-30 15:47:40.101304325 +0100 @@ -5,7 +5,7 @@ Name Version License cocur/slugify v2.5 MIT -composer/ca-bundle 1.2.4 MIT +composer/ca-bundle 1.2.6 MIT doctrine/cache v1.6.2 MIT firebase/php-jwt v2.2.0 BSD-3-Clause guzzlehttp/cache-subscriber 0.2.0 MIT @@ -16,20 +16,20 @@ padraic/phar-updater v1.0.6 BSD-3-Clause paragonie/random_compat v2.0.18 MIT pjcdawkins/guzzle-oauth2-plugin v2.2.0 MIT -platformsh/client v0.31.0 MIT +platformsh/client v0.31.2 MIT platformsh/console-form v0.0.24 MIT psr/container 1.0.0 MIT psr/log 1.1.2 MIT react/promise v2.7.1 MIT stecman/symfony-console-completion 0.10.1 MIT -symfony/config v3.4.36 MIT -symfony/console v3.4.36 MIT -symfony/debug v3.4.36 MIT -symfony/dependency-injection v3.4.36 MIT -symfony/event-dispatcher v3.4.36 MIT -symfony/filesystem v3.4.36 MIT -symfony/finder v3.4.36 MIT +symfony/config v3.4.37 MIT +symfony/console v3.4.37 MIT +symfony/debug v3.4.37 MIT +symfony/dependency-injection v3.4.37 MIT +symfony/event-dispatcher v3.4.37 MIT +symfony/filesystem v3.4.37 MIT +symfony/finder v3.4.37 MIT symfony/polyfill-ctype v1.13.1 MIT symfony/polyfill-mbstring v1.13.1 MIT -symfony/process v3.4.36 MIT -symfony/yaml v3.4.36 MIT +symfony/process v3.4.37 MIT +symfony/yaml v3.4.37 MIT ++++++ platformsh-cli-3.52.0.tar.xz -> platformsh-cli-3.52.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/composer.lock new/platformsh-cli-3.52.1/composer.lock --- old/platformsh-cli-3.52.0/composer.lock 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/composer.lock 2020-01-29 12:29:32.000000000 +0100 @@ -72,16 +72,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.2.4", + "version": "1.2.6", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527" + "reference": "47fe531de31fca4a1b997f87308e7d7804348f7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/10bb96592168a0f8e8f6...", - "reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/47fe531de31fca4a1b99...", + "reference": "47fe531de31fca4a1b997f87308e7d7804348f7e", "shasum": "" }, "require": { @@ -92,7 +92,7 @@ "require-dev": { "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8", "psr/log": "^1.0", - "symfony/process": "^2.5 || ^3.0 || ^4.0" + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" }, "type": "library", "extra": { @@ -124,7 +124,7 @@ "ssl", "tls" ], - "time": "2019-08-30T08:44:50+00:00" + "time": "2020-01-13T10:02:55+00:00" }, { "name": "doctrine/cache", @@ -394,6 +394,7 @@ } ], "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.", + "abandoned": true, "time": "2018-07-31T13:22:33+00:00" }, { @@ -444,6 +445,7 @@ "Guzzle", "stream" ], + "abandoned": true, "time": "2014-10-12T19:18:40+00:00" }, { @@ -663,16 +665,16 @@ }, { "name": "platformsh/client", - "version": "v0.31.0", + "version": "v0.31.2", "source": { "type": "git", "url": "https://github.com/platformsh/platformsh-client-php.git", - "reference": "880f5464894baff81d16ace340443601844a208c" + "reference": "073a925c8524169675495234d68b72d77f411a12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/platformsh/platformsh-client-php/zipball/880f54...", - "reference": "880f5464894baff81d16ace340443601844a208c", + "url": "https://api.github.com/repos/platformsh/platformsh-client-php/zipball/073a92...", + "reference": "073a925c8524169675495234d68b72d77f411a12", "shasum": "" }, "require": { @@ -702,7 +704,7 @@ } ], "description": "Platform.sh API client", - "time": "2019-12-16T09:37:35+00:00" + "time": "2020-01-29T10:13:08+00:00" }, { "name": "platformsh/console-form", @@ -932,16 +934,16 @@ }, { "name": "symfony/config", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "a599a867d0e4a07c342b5f1e656b3915a540ddbe" + "reference": "6abc18b2a97f63508d23929bbb2ae65aaa07bace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/a599a867d0e4a07c342b5f1e...", - "reference": "a599a867d0e4a07c342b5f1e656b3915a540ddbe", + "url": "https://api.github.com/repos/symfony/config/zipball/6abc18b2a97f63508d23929b...", + "reference": "6abc18b2a97f63508d23929bbb2ae65aaa07bace", "shasum": "" }, "require": { @@ -992,20 +994,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2019-12-01T10:45:41+00:00" + "time": "2020-01-04T12:05:51+00:00" }, { "name": "symfony/console", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "1ee23b3b659b06c622f2bd2492a229e416eb4586" + "reference": "7c5bdd346f9d90a2d22d4e1fe61e02dc19b98f12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/1ee23b3b659b06c622f2bd2...", - "reference": "1ee23b3b659b06c622f2bd2492a229e416eb4586", + "url": "https://api.github.com/repos/symfony/console/zipball/7c5bdd346f9d90a2d22d4e1...", + "reference": "7c5bdd346f9d90a2d22d4e1fe61e02dc19b98f12", "shasum": "" }, "require": { @@ -1064,20 +1066,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-12-01T10:04:45+00:00" + "time": "2020-01-10T07:52:48+00:00" }, { "name": "symfony/debug", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "f72e33fdb1170b326e72c3157f0cd456351dd086" + "reference": "70dd18e93bb8bdf3c4db7fde832619fef9828cf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/f72e33fdb1170b326e72c3157...", - "reference": "f72e33fdb1170b326e72c3157f0cd456351dd086", + "url": "https://api.github.com/repos/symfony/debug/zipball/70dd18e93bb8bdf3c4db7fde8...", + "reference": "70dd18e93bb8bdf3c4db7fde832619fef9828cf8", "shasum": "" }, "require": { @@ -1120,20 +1122,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2019-10-24T15:33:53+00:00" + "time": "2020-01-08T16:36:15+00:00" }, { "name": "symfony/dependency-injection", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "0d201916bfb3af939fec3c0c8815ea16c60ac1a2" + "reference": "22000f10c9e1cfef051e8b4de46815b41a0223fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/0d201916bf...", - "reference": "0d201916bfb3af939fec3c0c8815ea16c60ac1a2", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/22000f10c9...", + "reference": "22000f10c9e1cfef051e8b4de46815b41a0223fc", "shasum": "" }, "require": { @@ -1191,20 +1193,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2019-12-01T08:33:36+00:00" + "time": "2020-01-08T11:20:51+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "f9031c22ec127d4a2450760f81a8677fe8a10177" + "reference": "79ede8f2836e5ec910ebb325bde40f987244baa8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f9031c22ec127d...", - "reference": "f9031c22ec127d4a2450760f81a8677fe8a10177", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/79ede8f2836e5e...", + "reference": "79ede8f2836e5ec910ebb325bde40f987244baa8", "shasum": "" }, "require": { @@ -1254,20 +1256,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-10-24T15:33:53+00:00" + "time": "2020-01-04T12:05:51+00:00" }, { "name": "symfony/filesystem", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "00cdad0936d06fab136944bc2342b762b1c3a4a2" + "reference": "0a0d3b4bda11aa3a0464531c40e681e184e75628" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/00cdad0936d06fab1369...", - "reference": "00cdad0936d06fab136944bc2342b762b1c3a4a2", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/0a0d3b4bda11aa3a0464...", + "reference": "0a0d3b4bda11aa3a0464531c40e681e184e75628", "shasum": "" }, "require": { @@ -1304,20 +1306,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2019-11-25T16:36:22+00:00" + "time": "2020-01-17T08:50:08+00:00" }, { "name": "symfony/finder", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "290ae21279b37bfd287cdcce640d51204e84afdf" + "reference": "a90a9d3b9f458a5cdeabfa4090b20c000ca3962f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/290ae21279b37bfd287cdcce...", - "reference": "290ae21279b37bfd287cdcce640d51204e84afdf", + "url": "https://api.github.com/repos/symfony/finder/zipball/a90a9d3b9f458a5cdeabfa40...", + "reference": "a90a9d3b9f458a5cdeabfa4090b20c000ca3962f", "shasum": "" }, "require": { @@ -1353,7 +1355,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-11-17T21:55:15+00:00" + "time": "2020-01-01T11:03:25+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1474,16 +1476,16 @@ }, { "name": "symfony/process", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "9a4545c01e1e4f473492bd52b71e574dcc401ca2" + "reference": "5b9d2bcffe4678911a4c941c00b7c161252cf09a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/9a4545c01e1e4f473492bd5...", - "reference": "9a4545c01e1e4f473492bd52b71e574dcc401ca2", + "url": "https://api.github.com/repos/symfony/process/zipball/5b9d2bcffe4678911a4c941...", + "reference": "5b9d2bcffe4678911a4c941c00b7c161252cf09a", "shasum": "" }, "require": { @@ -1519,20 +1521,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-11-28T10:05:51+00:00" + "time": "2020-01-01T11:03:25+00:00" }, { "name": "symfony/yaml", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "dab657db15207879217fc81df4f875947bf68804" + "reference": "aa46bc2233097d5212332c907f9911533acfbf80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/dab657db15207879217fc81df4...", - "reference": "dab657db15207879217fc81df4f875947bf68804", + "url": "https://api.github.com/repos/symfony/yaml/zipball/aa46bc2233097d5212332c907f...", + "reference": "aa46bc2233097d5212332c907f9911533acfbf80", "shasum": "" }, "require": { @@ -1578,7 +1580,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-10-24T15:33:53+00:00" + "time": "2020-01-13T08:00:59+00:00" } ], "packages-dev": [ @@ -1879,25 +1881,25 @@ }, { "name": "dnoegel/php-xdg-base-dir", - "version": "0.1", + "version": "v0.1.1", "source": { "type": "git", "url": "https://github.com/dnoegel/php-xdg-base-dir.git", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a" + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b99...", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a", + "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0...", + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", "shasum": "" }, "require": { "php": ">=5.3.2" }, "require-dev": { - "phpunit/phpunit": "@stable" + "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35" }, - "type": "project", + "type": "library", "autoload": { "psr-4": { "XdgBaseDir\\": "src/" @@ -1908,7 +1910,7 @@ "MIT" ], "description": "implementation of xdg base directory specification for php", - "time": "2014-10-24T07:27:01+00:00" + "time": "2019-12-04T15:06:13+00:00" }, { "name": "doctrine/instantiator", @@ -2419,33 +2421,33 @@ }, { "name": "phpspec/prophecy", - "version": "1.9.0", + "version": "v1.10.2", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203" + "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0...", - "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2b...", + "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.1|^2.0|^3.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0" + "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" }, "require-dev": { - "phpspec/phpspec": "^2.5|^3.2", + "phpspec/phpspec": "^2.5 || ^3.2", "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.8.x-dev" + "dev-master": "1.10.x-dev" } }, "autoload": { @@ -2478,7 +2480,7 @@ "spy", "stub" ], - "time": "2019-10-03T11:07:50+00:00" + "time": "2020-01-20T15:57:02+00:00" }, { "name": "phpunit/php-code-coverage", @@ -2859,20 +2861,20 @@ }, { "name": "psy/psysh", - "version": "v0.9.11", + "version": "v0.9.12", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "75d9ac1c16db676de27ab554a4152b594be4748e" + "reference": "90da7f37568aee36b116a030c5f99c915267edd4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/75d9ac1c16db676de27ab55...", - "reference": "75d9ac1c16db676de27ab554a4152b594be4748e", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/90da7f37568aee36b116a03...", + "reference": "90da7f37568aee36b116a030c5f99c915267edd4", "shasum": "" }, "require": { - "dnoegel/php-xdg-base-dir": "0.1", + "dnoegel/php-xdg-base-dir": "0.1.*", "ext-json": "*", "ext-tokenizer": "*", "jakub-onderka/php-console-highlighter": "0.3.*|0.4.*", @@ -2929,7 +2931,7 @@ "interactive", "shell" ], - "time": "2019-11-27T22:44:29+00:00" + "time": "2019-12-06T14:19:43+00:00" }, { "name": "sebastian/comparator", @@ -3305,16 +3307,16 @@ }, { "name": "symfony/var-dumper", - "version": "v3.4.36", + "version": "v3.4.37", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "569e261461600810845a8305ca3f64abd3e712c0" + "reference": "51ecb139114c38080801145a212f10210ea99ea3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/569e261461600810845a...", - "reference": "569e261461600810845a8305ca3f64abd3e712c0", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/51ecb139114c38080801...", + "reference": "51ecb139114c38080801145a212f10210ea99ea3", "shasum": "" }, "require": { @@ -3370,7 +3372,7 @@ "debug", "dump" ], - "time": "2019-10-10T11:03:19+00:00" + "time": "2020-01-01T11:03:25+00:00" }, { "name": "webflo/drupal-finder", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/dist/manifest.json new/platformsh-cli-3.52.1/dist/manifest.json --- old/platformsh-cli-3.52.0/dist/manifest.json 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/dist/manifest.json 2020-01-29 12:29:32.000000000 +0100 @@ -17,10 +17,10 @@ }, { "name": "platform.phar", - "sha1": "f230b9726c3b301da91af812bf96f495884d2f69", - "sha256": "b6bd5acd975466edcdd85a982b450143286914c8e02b78731b67d9b9a834eda1", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.52.0/platf...", - "version": "3.52.0", + "sha1": "c7b03ff56dbd10b70a137baa86af7900ccfe5a22", + "sha256": "4d74907c3c2a988aa71754a80bde358a890032568b820b8e5d544ced617884f3", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.52.1/platf...", + "version": "3.52.1", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Command/Db/DbSizeCommand.php new/platformsh-cli-3.52.1/src/Command/Db/DbSizeCommand.php --- old/platformsh-cli-3.52.0/src/Command/Db/DbSizeCommand.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Command/Db/DbSizeCommand.php 2020-01-29 12:29:32.000000000 +0100 @@ -131,7 +131,7 @@ * @return void */ private function checkInnoDbTablesInNeedOfOptimizing($host, array $database) { - $tablesNeedingCleanup = $host->runCommand($this->mysqlTablesInNeedOfOptimizing($database)); + $tablesNeedingCleanup = $host->runCommand($this->getMysqlCommand($database), true, true, $this->mysqlTablesInNeedOfOptimizing()); $queries = []; if (is_string($tablesNeedingCleanup)) { $queries = $this->getCleanupQueries(explode("\n", $tablesNeedingCleanup)); @@ -156,9 +156,10 @@ $this->stdErr->writeln(''); if ($this->getService('question_helper')->confirm('Do you want to run these queries now?', false)) { + $mysqlCommand = $this->getMysqlCommand($database); foreach ($queries as $query) { $this->stdErr->write($query); - $host->runCommand($this->getMysqlCommand($database, $query)); + $host->runCommand($mysqlCommand, true, true, $query); $this->stdErr->writeln('<options=bold;fg=green> [OK]</>'); } } @@ -211,113 +212,103 @@ } /** - * Returns a command to query disk usage for a PostgreSQL database. - * - * @param array $database The database connection details. + * Returns a query to find disk usage for a PostgreSQL database. * * @return string */ - private function psqlQuery(array $database) + private function psqlQuery() { //both these queries are wrong... //$query = 'SELECT SUM(pg_database_size(t1.datname)) as size FROM pg_database t1'; //does miss lots of data //$query = 'SELECT SUM(pg_total_relation_size(pg_class.oid)) AS size FROM pg_class LEFT OUTER JOIN pg_namespace ON (pg_namespace.oid = pg_class.relnamespace)'; //but running both, and taking the average, gets us closer to the correct value - $query = 'SELECT AVG(size) FROM (SELECT SUM(pg_database_size(t1.datname)) as size FROM pg_database t1 UNION SELECT SUM(pg_total_relation_size(pg_class.oid)) AS size FROM pg_class LEFT OUTER JOIN pg_namespace ON (pg_namespace.oid = pg_class.relnamespace)) x;';//too much + return 'SELECT AVG(size) FROM (SELECT SUM(pg_database_size(t1.datname)) as size FROM pg_database t1 UNION SELECT SUM(pg_total_relation_size(pg_class.oid)) AS size FROM pg_class LEFT OUTER JOIN pg_namespace ON (pg_namespace.oid = pg_class.relnamespace)) x;'; + } + /** + * Returns the psql CLI client command. + * + * @param array $database + * + * @return string + */ + private function getPsqlCommand(array $database) { /** @var \Platformsh\Cli\Service\Relationships $relationships */ $relationships = $this->getService('relationships'); $dbUrl = $relationships->getDbCommandArgs('psql', $database, ''); return sprintf( - 'psql --echo-hidden -t --no-align %s -c %s', - $dbUrl, - OsUtil::escapePosixShellArg($query) + 'psql --echo-hidden -t --no-align %s', + $dbUrl ); } /** - * Returns the mysql CLI client command for an SQL query. + * Returns the mysql CLI client command. * * @param array $database - * @param string $query * * @return string */ - private function getMysqlCommand(array $database, $query) { + private function getMysqlCommand(array $database) { /** @var \Platformsh\Cli\Service\Relationships $relationships */ $relationships = $this->getService('relationships'); $connectionParams = $relationships->getDbCommandArgs('mysql', $database, ''); return sprintf( - 'mysql %s --no-auto-rehash --raw --skip-column-names --execute %s', - $connectionParams, - OsUtil::escapePosixShellArg($query) + 'mysql %s --no-auto-rehash --raw --skip-column-names', + $connectionParams ); } /** * Returns a command to query table size of non-InnoDB using tables for a MySQL database in MB * - * @param array $database The database connection details. * @param bool $excludeInnoDb * * @return string */ - private function mysqlNonInnodbQuery(array $database, $excludeInnoDb = true) + private function mysqlNonInnodbQuery($excludeInnoDb = true) { - $query = 'SELECT' + return 'SELECT' . ' (' . 'SUM(data_length+index_length+data_free)' . ' + (COUNT(*) * 300 * 1024)' . ')' . ' AS estimated_actual_disk_usage' . ' FROM information_schema.tables' - . ($excludeInnoDb ? ' WHERE ENGINE <> "InnoDB"' : ''); - - return $this->getMysqlCommand($database, $query); + . ($excludeInnoDb ? ' WHERE ENGINE <> "InnoDB"' : '') + . ';'; } /** * Returns a MySQL query to find disk usage for all InnoDB tables. * - * @param array $database The database connection details. - * * @return string */ - private function mysqlInnodbQuery(array $database) + private function mysqlInnodbQuery() { - $query = 'SELECT SUM(ALLOCATED_SIZE) FROM information_schema.innodb_sys_tablespaces;'; - - return $this->getMysqlCommand($database, $query); + return 'SELECT SUM(ALLOCATED_SIZE) FROM information_schema.innodb_sys_tablespaces;'; } /** * Returns a MySQL query to find if the InnoDB ALLOCATED_SIZE column exists. * - * @param array $database - * * @return string */ - private function mysqlInnodbAllocatedSizeExists(array $database) { - $query = 'SELECT count(COLUMN_NAME) FROM information_schema.COLUMNS WHERE table_schema ="information_schema" AND table_name="innodb_sys_tablespaces" AND column_name LIKE "ALLOCATED_SIZE";'; - - return $this->getMysqlCommand($database, $query); + private function mysqlInnodbAllocatedSizeExists() { + return 'SELECT count(COLUMN_NAME) FROM information_schema.COLUMNS WHERE table_schema ="information_schema" AND table_name="innodb_sys_tablespaces" AND column_name LIKE "ALLOCATED_SIZE";'; } /** * Returns a MySQL query to find InnoDB tables needing optimization. * - * @param array $database The database connection details. - * * @return string */ - private function mysqlTablesInNeedOfOptimizing(array $database) { + private function mysqlTablesInNeedOfOptimizing() { /*, data_free, data_length, ((data_free+1)/(data_length+1))*100 as wasted_space_percentage*/ - $query = 'SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.tables WHERE ENGINE = "InnoDB" AND ((data_free+1)/(data_length+1))*100 >= '.self::WASTED_SPACE_WARNING_THRESHOLD.' ORDER BY data_free DESC LIMIT 10'; - - return $this->getMysqlCommand($database, $query); + return 'SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.tables WHERE ENGINE = "InnoDB" AND ((data_free+1)/(data_length+1))*100 >= '.self::WASTED_SPACE_WARNING_THRESHOLD.' ORDER BY data_free DESC LIMIT 10'; } /** @@ -345,7 +336,7 @@ * @return int Estimated usage in bytes */ private function getPgSqlUsage(HostInterface $host, array $database) { - return (int) $host->runCommand($this->psqlQuery($database)); + return (int) $host->runCommand($this->getPsqlCommand($database), true, true, $this->psqlQuery()); } /** @@ -358,12 +349,12 @@ */ private function getMySqlUsage(HostInterface $host, array $database) { $this->debug('Getting MySQL usage...'); - $allocatedSizeSupported = $host->runCommand($this->mysqlInnodbAllocatedSizeExists($database)); + $allocatedSizeSupported = $host->runCommand($this->getMysqlCommand($database), true, true, $this->mysqlInnodbAllocatedSizeExists()); $innoDbSize = 0; if ($allocatedSizeSupported) { $this->debug('Checking InnoDB separately for more accurate results...'); try { - $innoDbSize = $host->runCommand($this->mysqlInnodbQuery($database)); + $innoDbSize = $host->runCommand($this->getMysqlCommand($database), true, true, $this->mysqlInnodbQuery()); } catch (\Symfony\Component\Process\Exception\RuntimeException $e) { // Some configurations do not have PROCESS privilege(s) and thus have no access to the sys_tablespaces // table. Ignore MySQL's 1227 Access Denied error, and revert to the legacy calculation. @@ -376,7 +367,7 @@ } } - $otherSizes = $host->runCommand($this->mysqlNonInnodbQuery($database, (bool) $allocatedSizeSupported)); + $otherSizes = $host->runCommand($this->getMysqlCommand($database), true, true, $this->mysqlNonInnodbQuery((bool) $allocatedSizeSupported)); return (int) $otherSizes + (int) $innoDbSize; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Command/Project/ProjectGetCommand.php new/platformsh-cli-3.52.1/src/Command/Project/ProjectGetCommand.php --- old/platformsh-cli-3.52.0/src/Command/Project/ProjectGetCommand.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Command/Project/ProjectGetCommand.php 2020-01-29 12:29:32.000000000 +0100 @@ -118,7 +118,7 @@ $this->config()->get('service.name') )); - $this->suggestSshRemedies(); + $this->suggestSshRemedies($gitUrl); return 1; } @@ -300,8 +300,10 @@ /** * Suggest SSH key commands for the user, if the Git connection fails. + * + * @param string $gitUrl */ - protected function suggestSshRemedies() + protected function suggestSshRemedies($gitUrl) { $sshKeys = []; try { @@ -310,18 +312,27 @@ // Ignore exceptions. } - if (!empty($sshKeys)) { - $this->stdErr->writeln(''); - $this->stdErr->writeln('Please check your SSH credentials'); - $this->stdErr->writeln(sprintf( - 'You can list your keys with: <comment>%s ssh-keys</comment>', - $this->config()->get('application.executable') - )); - } else { + $this->stdErr->writeln(''); + + if (empty($sshKeys)) { $this->stdErr->writeln(sprintf( 'You probably need to add an SSH key, with: <comment>%s ssh-key:add</comment>', $this->config()->get('application.executable') )); + return; + } + + $this->stdErr->writeln('Please check your SSH credentials'); + $this->stdErr->writeln(sprintf( + 'You can list your keys by running: <comment>%s ssh-keys</comment>', + $this->config()->get('application.executable') + )); + + if (strpos($gitUrl, ':') !== false) { + list($gitSshUrl,) = explode(':', $gitUrl, 2); + $this->stdErr->writeln(''); + $this->stdErr->writeln('You can test your connection to the Git server by running:'); + $this->stdErr->writeln(sprintf('<comment>ssh -v %s</comment>', escapeshellarg($gitSshUrl))); } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Model/Host/HostInterface.php new/platformsh-cli-3.52.1/src/Model/Host/HostInterface.php --- old/platformsh-cli-3.52.0/src/Model/Host/HostInterface.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Model/Host/HostInterface.php 2020-01-29 12:29:32.000000000 +0100 @@ -20,9 +20,12 @@ public function getCacheKey(); /** + * Runs a command on the host. + * * @param string $command - * @param bool $mustRun - * @param bool $quiet + * @param bool $mustRun + * @param bool $quiet + * @param string|null $input * * @return string|true * The command's output, or true if it succeeds with no output, or false @@ -31,7 +34,7 @@ * @throws \Symfony\Component\Process\Exception\RuntimeException * If $mustRun is enabled and the command fails. */ - public function runCommand($command, $mustRun = true, $quiet = true); + public function runCommand($command, $mustRun = true, $quiet = true, $input = null); /** * Runs a command using the current STDIN, STDOUT and STDERR. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Model/Host/LocalHost.php new/platformsh-cli-3.52.1/src/Model/Host/LocalHost.php --- old/platformsh-cli-3.52.0/src/Model/Host/LocalHost.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Model/Host/LocalHost.php 2020-01-29 12:29:32.000000000 +0100 @@ -60,9 +60,9 @@ /** * {@inheritDoc} */ - public function runCommand($command, $mustRun = true, $quiet = true) + public function runCommand($command, $mustRun = true, $quiet = true, $input = null) { - return $this->shell->execute($command, null, $mustRun, $quiet); + return $this->shell->execute($command, null, $mustRun, $quiet, [], 3600, $input); } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Model/Host/RemoteHost.php new/platformsh-cli-3.52.1/src/Model/Host/RemoteHost.php --- old/platformsh-cli-3.52.0/src/Model/Host/RemoteHost.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Model/Host/RemoteHost.php 2020-01-29 12:29:32.000000000 +0100 @@ -39,9 +39,9 @@ /** * {@inheritDoc} */ - public function runCommand($command, $mustRun = true, $quiet = true) + public function runCommand($command, $mustRun = true, $quiet = true, $input = null) { - return $this->shell->execute($this->wrapCommandLine($command), null, $mustRun, $quiet); + return $this->shell->execute($this->wrapCommandLine($command), null, $mustRun, $quiet, [], 3600, $input); } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.52.0/src/Service/Shell.php new/platformsh-cli-3.52.1/src/Service/Shell.php --- old/platformsh-cli-3.52.0/src/Service/Shell.php 2020-01-24 22:46:43.000000000 +0100 +++ new/platformsh-cli-3.52.1/src/Service/Shell.php 2020-01-29 12:29:32.000000000 +0100 @@ -76,6 +76,7 @@ * @param bool $quiet * @param array $env * @param int|null $timeout + * @param string|null $input * * @throws \Symfony\Component\Process\Exception\RuntimeException * If $mustRun is enabled and the command fails. @@ -84,9 +85,9 @@ * False if the command fails, true if it succeeds with no output, or a * string if it succeeds with output. */ - public function execute($args, $dir = null, $mustRun = false, $quiet = true, array $env = [], $timeout = 3600) + public function execute($args, $dir = null, $mustRun = false, $quiet = true, array $env = [], $timeout = 3600, $input = null) { - $process = new Process($args, null, null, null, $timeout); + $process = new Process($args, null, null, $input, $timeout); // Avoid adding 'exec' to every command. It is not needed in this // context as we do not need to send signals to the process. Also it @@ -104,6 +105,10 @@ OutputInterface::VERBOSITY_VERBOSE ); + if (!empty($input) && is_string($input)) { + $this->stdErr->writeln(sprintf(' Command input: <info>%s</info>', $input), OutputInterface::VERBOSITY_VERBOSE); + } + if (!empty($env)) { $this->showEnvMessage($env); $process->setEnv($env + $this->getParentEnv()); @@ -114,6 +119,9 @@ $this->showWorkingDirMessage($dir); } + // Blank line just to aid debugging. + $this->stdErr->writeln('', OutputInterface::VERBOSITY_VERBOSE); + $result = $this->runProcess($process, $mustRun, $quiet); return is_int($result) ? $result === 0 : $result; ++++++ platformsh-cli-vendor.tar.xz ++++++ ++++ 2297 lines of diff (skipped)
participants (1)
-
root