Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fuse-oscfs for openSUSE:Factory 
checked in at 2021-03-03 18:35:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fuse-oscfs (Old)
 and      /work/SRC/openSUSE:Factory/.fuse-oscfs.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fuse-oscfs"

Wed Mar  3 18:35:48 2021 rev:3 rq:876542 version:0.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/fuse-oscfs/fuse-oscfs.changes    2020-02-21 
16:43:50.050210015 +0100
+++ /work/SRC/openSUSE:Factory/.fuse-oscfs.new.2378/fuse-oscfs.changes  
2021-03-03 18:36:01.255420451 +0100
@@ -1,0 +2,9 @@
+Wed Mar 03 12:47:41 UTC 2021 - [email protected]
+
+- Update to version v0.7.2:
+  * obs getBuildlog(): return plain binary data instead of utf8 decoded string
+  * types: avoid encoding content during read() which can change the content 
size
+  * types: actually import sys to avoid error during error handling
+  * unicode handling: only use `unicode` on Python2
+
+-------------------------------------------------------------------

Old:
----
  oscfs-v0.7.1.tar.xz

New:
----
  oscfs-v0.7.2.tar.xz

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

Other differences:
------------------
++++++ fuse-oscfs.spec ++++++
--- /var/tmp/diff_new_pack.vATxS8/_old  2021-03-03 18:36:01.935420939 +0100
+++ /var/tmp/diff_new_pack.vATxS8/_new  2021-03-03 18:36:01.939420942 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package fuse-oscfs
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           fuse-oscfs
-Version:        0.7.1
+Version:        0.7.2
 Release:        0
 Summary:        A FUSE file system for accessing Open Build Service instances
 License:        GPL-2.0-or-later

++++++ _service ++++++
--- /var/tmp/diff_new_pack.vATxS8/_old  2021-03-03 18:36:01.991420979 +0100
+++ /var/tmp/diff_new_pack.vATxS8/_new  2021-03-03 18:36:01.991420979 +0100
@@ -2,7 +2,7 @@
   <service name="tar_scm" mode="disabled">
     <param name="url">https://github.com/mgerstner/oscfs.git</param>
     <param name="scm">git</param>
-    <param name="revision">v0.7.1</param>
+    <param name="revision">v0.7.2</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
   </service>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.vATxS8/_old  2021-03-03 18:36:02.023421002 +0100
+++ /var/tmp/diff_new_pack.vATxS8/_new  2021-03-03 18:36:02.023421002 +0100
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/mgerstner/oscfs.git</param>
-              <param 
name="changesrevision">010ad9582192f153fe46beaaee60758eb9b57cb8</param></service></servicedata>
\ No newline at end of file
+              <param 
name="changesrevision">4f47efa3a599448f36d49763445d9867a8610fae</param></service></servicedata>
\ No newline at end of file

++++++ oscfs-v0.7.1.tar.xz -> oscfs-v0.7.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oscfs-v0.7.1/oscfs/misc.py 
new/oscfs-v0.7.2/oscfs/misc.py
--- old/oscfs-v0.7.1/oscfs/misc.py      2020-02-21 13:47:32.000000000 +0100
+++ new/oscfs-v0.7.2/oscfs/misc.py      2021-01-11 12:06:58.000000000 +0100
@@ -50,6 +50,9 @@
        """Returns whether the current interpreter is of major version 2."""
        return sys.version_info.major == 3
 
+def _unicode(arg):
+       return str(arg) if isPython3() else unicode(arg)
+
 def getFriendlyException(ex):
        """Returns a friendly description of the currently active exception
        as a one-line string. This only works when called from an except:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oscfs-v0.7.1/oscfs/obs.py 
new/oscfs-v0.7.2/oscfs/obs.py
--- old/oscfs-v0.7.1/oscfs/obs.py       2020-02-21 13:47:32.000000000 +0100
+++ new/oscfs-v0.7.2/oscfs/obs.py       2021-01-11 12:06:58.000000000 +0100
@@ -268,13 +268,13 @@
                        "_log?start=0&nostream=1"
                ] )
 
-               ret = ""
+               ret = b""
 
                # NOTE: streamfile supports bufsize="line" to read line wise
                # and supports yield semantics. This breaks with our
                # urlopenwrapper hack, however so we don't use it.
                for line in osc.core.streamfile(url):
-                       ret += line.decode('utf8')
+                       ret += line
 
                return ret
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oscfs-v0.7.1/oscfs/package.py 
new/oscfs-v0.7.2/oscfs/package.py
--- old/oscfs-v0.7.1/oscfs/package.py   2020-02-21 13:47:32.000000000 +0100
+++ new/oscfs-v0.7.2/oscfs/package.py   2021-01-11 12:06:58.000000000 +0100
@@ -9,6 +9,7 @@
 import oscfs.obsfile
 import oscfs.link
 import oscfs.refreshtrigger
+from oscfs.misc import _unicode
 
 class Package(oscfs.types.DirNode):
        """This type represents a package node of the file system containing
@@ -329,7 +330,7 @@
                super(RequestNode, self).__init__(parent, name)
                self.m_req = req
                try:
-                       text = unicode(req).encode('utf8')
+                       text = _unicode(req).encode('utf8')
                except UnicodeEncodeError:
                        text = "<unicode-error>"
                self.setContent(text, self.getReqModTime())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oscfs-v0.7.1/oscfs/types.py 
new/oscfs-v0.7.2/oscfs/types.py
--- old/oscfs-v0.7.1/oscfs/types.py     2020-02-21 13:47:32.000000000 +0100
+++ new/oscfs-v0.7.2/oscfs/types.py     2021-01-11 12:06:58.000000000 +0100
@@ -6,6 +6,7 @@
 import time
 import stat
 import errno
+import sys
 
 # third party modules
 import fuse
@@ -245,6 +246,8 @@
                self.m_use_cache = True
 
        def setContent(self, content, date = None):
+               if oscfs.misc.isPython3() and isinstance(content, str):
+                       content = content.encode('utf8')
                self.m_content = content
                stat = self.getStat()
                stat.setSize(len(content))
@@ -263,8 +266,6 @@
                        self.fetchContent()
 
                ret = self.m_content[offset:offset+length]
-               if oscfs.misc.isPython3() and isinstance(ret, str):
-                       ret = ret.encode('utf8')
 
                return ret
 

Reply via email to