Hello community,

here is the log from the commit of package platformsh-cli for openSUSE:Factory 
checked in at 2018-06-25 11:41:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old)
 and      /work/SRC/openSUSE:Factory/.platformsh-cli.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "platformsh-cli"

Mon Jun 25 11:41:04 2018 rev:50 rq:618561 version:3.33.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes    
2018-06-20 15:32:05.336482754 +0200
+++ /work/SRC/openSUSE:Factory/.platformsh-cli.new/platformsh-cli.changes       
2018-06-25 11:41:17.555934911 +0200
@@ -1,0 +2,8 @@
+Fri Jun 22 20:53:00 UTC 2018 - [email protected]
+
+- Update to version 3.33.5:
+  * Release v3.33.5
+  * Support Integrated UI environmments in environment:logs (log) command 
(#728)
+  * Fix exception in mount:size commmmand on some regions
+
+-------------------------------------------------------------------

Old:
----
  platformsh-cli-3.33.4.tar.xz

New:
----
  platformsh-cli-3.33.5.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ platformsh-cli.spec ++++++
--- /var/tmp/diff_new_pack.1I1rac/_old  2018-06-25 11:41:18.467901247 +0200
+++ /var/tmp/diff_new_pack.1I1rac/_new  2018-06-25 11:41:18.471901100 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           platformsh-cli
-Version:        3.33.4
+Version:        3.33.5
 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.1I1rac/_old  2018-06-25 11:41:18.527899033 +0200
+++ /var/tmp/diff_new_pack.1I1rac/_new  2018-06-25 11:41:18.527899033 +0200
@@ -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.33.4</param>
+    <param name="revision">refs/tags/v3.33.5</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.1I1rac/_old  2018-06-25 11:41:18.547898294 +0200
+++ /var/tmp/diff_new_pack.1I1rac/_new  2018-06-25 11:41:18.547898294 +0200
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/platformsh/platformsh-cli.git</param>
-    <param 
name="changesrevision">f22ec7cd383b190b241d7cdf8b21d13d4addfcf5</param>
+    <param 
name="changesrevision">ae5f1e8a7640331288f1b22ca28149f796ac586b</param>
   </service>
 </servicedata>

++++++ platformsh-cli-3.33.4.tar.xz -> platformsh-cli-3.33.5.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.33.4/config.yaml 
new/platformsh-cli-3.33.5/config.yaml
--- old/platformsh-cli-3.33.4/config.yaml       2018-06-18 11:34:30.000000000 
+0200
+++ new/platformsh-cli-3.33.5/config.yaml       2018-06-22 18:26:15.000000000 
+0200
@@ -1,7 +1,7 @@
 # Metadata about the CLI application itself.
 application:
   name: 'Platform.sh CLI'
-  version: '3.33.4'
+  version: '3.33.5'
   executable: 'platform'
   package_name: 'platformsh/cli'
   installer_url: 'https://platform.sh/cli/installer'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.33.4/dist/manifest.json 
new/platformsh-cli-3.33.5/dist/manifest.json
--- old/platformsh-cli-3.33.4/dist/manifest.json        2018-06-18 
11:34:30.000000000 +0200
+++ new/platformsh-cli-3.33.5/dist/manifest.json        2018-06-22 
18:26:15.000000000 +0200
@@ -1,10 +1,10 @@
 [
     {
         "name": "platform.phar",
-        "sha1": "e6138e20f1aa1276afc1a7f305e2a6d1b65b7525",
-        "sha256": 
"5072c6799a5477a8335c549cc4d62030e7c70b3ef8dc2be195adddd61ae9070f",
-        "url": 
"https://github.com/platformsh/platformsh-cli/releases/download/v3.33.4/platform.phar";,
-        "version": "3.33.4",
+        "sha1": "5deade66f24de45b2a43062b77f8c4605a3b29b8",
+        "sha256": 
"92ee535e80b5d77be90d5a172e01e0af316377ab1e2414d7c6d83469356b9901",
+        "url": 
"https://github.com/platformsh/platformsh-cli/releases/download/v3.33.5/platform.phar";,
+        "version": "3.33.5",
         "php": {
             "min": "5.5.9"
         },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/platformsh-cli-3.33.4/src/Command/Environment/EnvironmentLogCommand.php 
new/platformsh-cli-3.33.5/src/Command/Environment/EnvironmentLogCommand.php
--- old/platformsh-cli-3.33.4/src/Command/Environment/EnvironmentLogCommand.php 
2018-06-18 11:34:30.000000000 +0200
+++ new/platformsh-cli-3.33.5/src/Command/Environment/EnvironmentLogCommand.php 
2018-06-22 18:26:15.000000000 +0200
@@ -48,13 +48,22 @@
         /** @var \Platformsh\Cli\Service\Shell $shell */
         $shell = $this->getService('shell');
 
+        $logDir = '/var/log';
+
+        // Special handling for Platform.sh Enterprise (Integrated UI)
+        // environments.
+        if (preg_match('/^ent-.*?platform\.sh$/', $sshUrl)) {
+            $logDir = '/var/log/platform/"$USER"';
+            $this->debug('Detected Platform.sh Enterprise environment: using 
log directory: ' . $logDir);
+        }
+
         // Select the log file that the user specified.
         if ($logType = $input->getArgument('type')) {
             // @todo this might need to be cleverer
             if (substr($logType, -4) === '.log') {
                 $logType = substr($logType, 0, strlen($logType) - 4);
             }
-            $logFilename = '/var/log/' . $logType . '.log';
+            $logFilename = $logDir . '/' . 
OsUtil::escapePosixShellArg($logType . '.log');
         } elseif (!$input->isInteractive()) {
             $this->stdErr->writeln('No log type specified.');
             return 1;
@@ -67,7 +76,7 @@
             /** @var \Doctrine\Common\Cache\CacheProvider $cache */
             $cache = $this->getService('cache');
             if (!$result = $cache->fetch($cacheKey)) {
-                $result = $shell->execute(['ssh', $sshUrl, 'ls -1 
/var/log/*.log']);
+                $result = $shell->execute(['ssh', $sshUrl, 'ls -1 ' . $logDir 
. '/*.log']);
 
                 // Cache the list for 1 day.
                 $cache->save($cacheKey, $result, 86400);
@@ -75,8 +84,8 @@
 
             // Provide a fallback list of files, in case the SSH command 
failed.
             $defaultFiles = [
-                '/var/log/access.log',
-                '/var/log/error.log',
+                $logDir . '/access.log',
+                $logDir . '/error.log',
             ];
             $files = $result ? explode("\n", $result) : $defaultFiles;
 
@@ -87,7 +96,7 @@
             $logFilename = $questionHelper->choose($files, 'Enter a number to 
choose a log: ');
         }
 
-        $command = sprintf('tail -n %1$d %2$s', $input->getOption('lines'), 
OsUtil::escapePosixShellArg($logFilename));
+        $command = sprintf('tail -n %1$d %2$s', $input->getOption('lines'), 
$logFilename);
         if ($input->getOption('tail')) {
             $command .= ' -f';
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/platformsh-cli-3.33.4/src/Command/Mount/MountSizeCommand.php 
new/platformsh-cli-3.33.5/src/Command/Mount/MountSizeCommand.php
--- old/platformsh-cli-3.33.4/src/Command/Mount/MountSizeCommand.php    
2018-06-18 11:34:30.000000000 +0200
+++ new/platformsh-cli-3.33.5/src/Command/Mount/MountSizeCommand.php    
2018-06-22 18:26:15.000000000 +0200
@@ -65,7 +65,7 @@
         $commands = [];
         $commands[] = 'echo "$' . $appDirVar . '"';
         $commands[] = 'echo';
-        $commands[] = 'df -P -B1 -a -x squashfs -x tmpfs -x sysfs -x proc -x 
devpts';
+        $commands[] = 'df -P -B1 -a -x squashfs -x tmpfs -x sysfs -x proc -x 
devpts -x rpc_pipefs';
         $commands[] = 'echo';
         $commands[] = 'cd "$' . $appDirVar . '"';
         foreach ($mountPaths as $mountPath) {
@@ -94,7 +94,12 @@
             if ($i === 0) {
                 continue;
             }
-            $path = $this->getDfColumn($line, 'path');
+            try {
+                $path = $this->getDfColumn($line, 'path');
+            } catch (\RuntimeException $e) {
+                $this->debug($e->getMessage());
+                continue;
+            }
             if (strpos($path, $appDir . '/') !== 0) {
                 continue;
             }

++++++ 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     2018-06-19 01:33:23.977956169 +0200
+++ new/vendor/autoload.php     2018-06-22 22:53:03.501903712 +0200
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer/autoload_real.php';
 
-return ComposerAutoloaderInitee6562257b7cb4d29cd1afcfd236ead9::getLoader();
+return ComposerAutoloaderInitd403ec1200349c41bc7fad0285935c50::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       2018-06-19 01:33:23.977956169 
+0200
+++ new/vendor/composer/autoload_real.php       2018-06-22 22:53:03.501903712 
+0200
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInitee6562257b7cb4d29cd1afcfd236ead9
+class ComposerAutoloaderInitd403ec1200349c41bc7fad0285935c50
 {
     private static $loader;
 
@@ -19,15 +19,15 @@
             return self::$loader;
         }
 
-        
spl_autoload_register(array('ComposerAutoloaderInitee6562257b7cb4d29cd1afcfd236ead9',
 'loadClassLoader'), true, true);
+        
spl_autoload_register(array('ComposerAutoloaderInitd403ec1200349c41bc7fad0285935c50',
 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-        
spl_autoload_unregister(array('ComposerAutoloaderInitee6562257b7cb4d29cd1afcfd236ead9',
 'loadClassLoader'));
+        
spl_autoload_unregister(array('ComposerAutoloaderInitd403ec1200349c41bc7fad0285935c50',
 '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\ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9::getInitializer($loader));
+            
call_user_func(\Composer\Autoload\ComposerStaticInitd403ec1200349c41bc7fad0285935c50::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\ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9::$files;
+            $includeFiles = 
Composer\Autoload\ComposerStaticInitd403ec1200349c41bc7fad0285935c50::$files;
         } else {
             $includeFiles = require __DIR__ . '/autoload_files.php';
         }
         foreach ($includeFiles as $fileIdentifier => $file) {
-            composerRequireee6562257b7cb4d29cd1afcfd236ead9($fileIdentifier, 
$file);
+            composerRequired403ec1200349c41bc7fad0285935c50($fileIdentifier, 
$file);
         }
 
         return $loader;
     }
 }
 
-function composerRequireee6562257b7cb4d29cd1afcfd236ead9($fileIdentifier, 
$file)
+function composerRequired403ec1200349c41bc7fad0285935c50($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     2018-06-19 01:33:23.977956169 
+0200
+++ new/vendor/composer/autoload_static.php     2018-06-22 22:53:03.501903712 
+0200
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9
+class ComposerStaticInitd403ec1200349c41bc7fad0285935c50
 {
     public static $files = array (
         '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . 
'/symfony/polyfill-mbstring/bootstrap.php',
@@ -195,9 +195,9 @@
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = 
ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = 
ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9::$prefixDirsPsr4;
-            $loader->classMap = 
ComposerStaticInitee6562257b7cb4d29cd1afcfd236ead9::$classMap;
+            $loader->prefixLengthsPsr4 = 
ComposerStaticInitd403ec1200349c41bc7fad0285935c50::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = 
ComposerStaticInitd403ec1200349c41bc7fad0285935c50::$prefixDirsPsr4;
+            $loader->classMap = 
ComposerStaticInitd403ec1200349c41bc7fad0285935c50::$classMap;
 
         }, null, ClassLoader::class);
     }


Reply via email to