Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-scp for openSUSE:Factory 
checked in at 2021-07-01 07:05:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scp (Old)
 and      /work/SRC/openSUSE:Factory/.python-scp.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-scp"

Thu Jul  1 07:05:33 2021 rev:6 rq:903121 version:0.13.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scp/python-scp.changes    2020-11-26 
23:16:09.077072888 +0100
+++ /work/SRC/openSUSE:Factory/.python-scp.new.2625/python-scp.changes  
2021-07-01 07:05:43.623433676 +0200
@@ -1,0 +2,10 @@
+Tue Jun 29 20:06:41 UTC 2021 - Martin Hauke <[email protected]>
+
+- Update to version 0.13.5
+  * Fix extra space sent in SSH command-line for get(), causing
+    issues on some servers.
+- Update to version 0.13.4
+  * Add scp_command attribute, allowing changing the command run
+    on the server (for example to sudo scp)
+
+-------------------------------------------------------------------

Old:
----
  scp-0.13.3.tar.gz

New:
----
  scp-0.13.5.tar.gz

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

Other differences:
------------------
++++++ python-scp.spec ++++++
--- /var/tmp/diff_new_pack.rvazfH/_old  2021-07-01 07:05:44.023430551 +0200
+++ /var/tmp/diff_new_pack.rvazfH/_new  2021-07-01 07:05:44.027430519 +0200
@@ -1,8 +1,8 @@
 #
 # spec file for package python-scp
 #
-# Copyright (c) 2020 SUSE LLC
-# Copyright (c) 2017, Martin Hauke <[email protected]>
+# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2017-2021, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-scp
-Version:        0.13.3
+Version:        0.13.5
 Release:        0
 Summary:        SSH scp module for paramiko
 License:        LGPL-2.1-or-later

++++++ scp-0.13.3.tar.gz -> scp-0.13.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/CHANGELOG.md new/scp-0.13.5/CHANGELOG.md
--- old/scp-0.13.3/CHANGELOG.md 2020-10-26 22:25:34.000000000 +0100
+++ new/scp-0.13.5/CHANGELOG.md 2021-06-28 21:51:32.000000000 +0200
@@ -1,5 +1,13 @@
 # Changelog
 
+## 0.13.5 (2021-06-28)
+
+- Fix extra space sent in SSH command-line for `get()`, causing issues on some 
servers
+
+## 0.13.4 (2021-06-08)
+
+- Add `scp_command` attribute, allowing changing the command run on the server 
(for example to `sudo scp`)
+
 ## 0.13.3 (2020-10-26)
 
 - Fix hanging when underlying paramiko channel is closed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/PKG-INFO new/scp-0.13.5/PKG-INFO
--- old/scp-0.13.3/PKG-INFO     2020-10-26 22:26:39.943341300 +0100
+++ new/scp-0.13.5/PKG-INFO     2021-06-28 21:52:45.039251800 +0200
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: scp
-Version: 0.13.3
+Version: 0.13.5
 Summary: scp module for paramiko
 Home-page: https://github.com/jbardin/scp.py
 Author: James Bardin
 Author-email: [email protected]
-License: LGPL
+License: LGPL-2.1-or-later
 Description: Pure python scp module
         ======================
         
@@ -53,13 +53,13 @@
             from paramiko import SSHClient
             from scp import SCPClient
         
-            ssh = SSHClient()
-            ssh.load_system_host_keys()
-            ssh.connect('example.com')
-        
-            with SCPClient(ssh.get_transport()) as scp:
-                scp.put('test.txt', 'test2.txt')
-                scp.get('test2.txt')
+            with SSHClient() as ssh:
+                ssh.load_system_host_keys()
+                ssh.connect('example.com')
+        
+                with SCPClient(ssh.get_transport()) as scp:
+                    scp.put('test.txt', 'test2.txt')
+                    scp.get('test2.txt')
         
         
         ..  code-block::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/README.rst new/scp-0.13.5/README.rst
--- old/scp-0.13.3/README.rst   2020-06-15 04:52:26.000000000 +0200
+++ new/scp-0.13.5/README.rst   2021-06-08 19:48:24.000000000 +0200
@@ -45,13 +45,13 @@
     from paramiko import SSHClient
     from scp import SCPClient
 
-    ssh = SSHClient()
-    ssh.load_system_host_keys()
-    ssh.connect('example.com')
+    with SSHClient() as ssh:
+        ssh.load_system_host_keys()
+        ssh.connect('example.com')
 
-    with SCPClient(ssh.get_transport()) as scp:
-        scp.put('test.txt', 'test2.txt')
-        scp.get('test2.txt')
+        with SCPClient(ssh.get_transport()) as scp:
+            scp.put('test.txt', 'test2.txt')
+            scp.get('test2.txt')
 
 
 ..  code-block::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/scp.egg-info/PKG-INFO 
new/scp-0.13.5/scp.egg-info/PKG-INFO
--- old/scp-0.13.3/scp.egg-info/PKG-INFO        2020-10-26 22:26:39.000000000 
+0100
+++ new/scp-0.13.5/scp.egg-info/PKG-INFO        2021-06-28 21:52:44.000000000 
+0200
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: scp
-Version: 0.13.3
+Version: 0.13.5
 Summary: scp module for paramiko
 Home-page: https://github.com/jbardin/scp.py
 Author: James Bardin
 Author-email: [email protected]
-License: LGPL
+License: LGPL-2.1-or-later
 Description: Pure python scp module
         ======================
         
@@ -53,13 +53,13 @@
             from paramiko import SSHClient
             from scp import SCPClient
         
-            ssh = SSHClient()
-            ssh.load_system_host_keys()
-            ssh.connect('example.com')
-        
-            with SCPClient(ssh.get_transport()) as scp:
-                scp.put('test.txt', 'test2.txt')
-                scp.get('test2.txt')
+            with SSHClient() as ssh:
+                ssh.load_system_host_keys()
+                ssh.connect('example.com')
+        
+                with SCPClient(ssh.get_transport()) as scp:
+                    scp.put('test.txt', 'test2.txt')
+                    scp.get('test2.txt')
         
         
         ..  code-block::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/scp.py new/scp-0.13.5/scp.py
--- old/scp-0.13.3/scp.py       2020-10-26 22:25:40.000000000 +0100
+++ new/scp-0.13.5/scp.py       2021-06-28 21:51:32.000000000 +0200
@@ -5,7 +5,7 @@
 Utilities for sending files over ssh using the scp1 protocol.
 """
 
-__version__ = '0.13.3'
+__version__ = '0.13.5'
 
 import locale
 import os
@@ -17,6 +17,8 @@
 # this is quote from the shlex module, added in py3.3
 _find_unsafe = re.compile(br'[^\w@%+=:,./~-]').search
 
+SCP_COMMAND = b'scp'
+
 
 def _sh_quote(s):
     """Return a shell-escaped version of the string `s`."""
@@ -123,6 +125,7 @@
         self.sanitize = sanitize
         self._dirtimes = {}
         self.peername = self.transport.getpeername()
+        self.scp_command = SCP_COMMAND
 
     def __enter__(self):
         self.channel = self._open()
@@ -152,7 +155,7 @@
         self.channel = self._open()
         self._pushed = 0
         self.channel.settimeout(self.socket_timeout)
-        scp_command = (b'scp -t ', b'scp -r -t ')[recursive]
+        scp_command = self.scp_command + b' ' + (b'-t ', b'-r -t ')[recursive]
         self.channel.exec_command(scp_command +
                                   self.sanitize(asbytes(remote_path)))
         self._recv_confirm()
@@ -188,7 +191,7 @@
 
         self.channel = self._open()
         self.channel.settimeout(self.socket_timeout)
-        self.channel.exec_command(b'scp -t ' +
+        self.channel.exec_command(self.scp_command + b' -t ' +
                                   self.sanitize(asbytes(remote_path)))
         self._recv_confirm()
         self._send_file(fl, remote_path, mode, size=size)
@@ -230,7 +233,7 @@
         self.channel = self._open()
         self._pushed = 0
         self.channel.settimeout(self.socket_timeout)
-        self.channel.exec_command(b"scp" +
+        self.channel.exec_command(self.scp_command +
                                   rcsv +
                                   prsv +
                                   b" -f " +
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scp-0.13.3/setup.py new/scp-0.13.5/setup.py
--- old/scp-0.13.3/setup.py     2020-10-26 22:25:46.000000000 +0100
+++ new/scp-0.13.5/setup.py     2021-06-28 21:51:32.000000000 +0200
@@ -10,10 +10,10 @@
     description = fp.read()
 setup(
         name = 'scp',
-        version = '0.13.3',
+        version = '0.13.5',
         author = 'James Bardin',
         author_email = '[email protected]',
-        license = 'LGPL',
+        license = 'LGPL-2.1-or-later',
         url = 'https://github.com/jbardin/scp.py',
         description='scp module for paramiko',
         long_description=description,

Reply via email to