Hello community,

here is the log from the commit of package osc-plugin-collab for 
openSUSE:Factory checked in at 2019-09-20 14:51:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osc-plugin-collab (Old)
 and      /work/SRC/openSUSE:Factory/.osc-plugin-collab.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "osc-plugin-collab"

Fri Sep 20 14:51:40 2019 rev:13 rq:731760 version:0.102

Changes:
--------
--- /work/SRC/openSUSE:Factory/osc-plugin-collab/osc-plugin-collab.changes      
2019-05-03 22:47:59.907985732 +0200
+++ 
/work/SRC/openSUSE:Factory/.osc-plugin-collab.new.7948/osc-plugin-collab.changes
    2019-09-20 14:51:41.842900515 +0200
@@ -1,0 +2,7 @@
+Wed Sep 11 14:17:25 UTC 2019 - [email protected]
+
+- Update to version 0.102:
+  + Fix configuring on python3
+  + Fix another str vs. bytes issue
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ osc-plugin-collab.spec ++++++
--- /var/tmp/diff_new_pack.9yNsD1/_old  2019-09-20 14:51:42.386900407 +0200
+++ /var/tmp/diff_new_pack.9yNsD1/_new  2019-09-20 14:51:42.394900405 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           osc-plugin-collab
-Version:        0.101
+Version:        0.102
 Release:        0
 Summary:        Plugin to make collaboration easier with osc
 License:        BSD-3-Clause

++++++ osc-collab.py ++++++
--- /var/tmp/diff_new_pack.9yNsD1/_old  2019-09-20 14:51:42.438900396 +0200
+++ /var/tmp/diff_new_pack.9yNsD1/_new  2019-09-20 14:51:42.442900396 +0200
@@ -69,7 +69,7 @@
 from osc import conf
 
 
-OSC_COLLAB_VERSION = '0.101'
+OSC_COLLAB_VERSION = '0.102'
 
 # This is a hack to have osc ignore the file we create in a package directory.
 _osc_collab_helper_prefixes = [ 'osc-collab.', 'osc-gnome.' ]
@@ -2502,14 +2502,14 @@
     locale.setlocale(locale.LC_TIME, 'C')
     os.putenv('TZ', 'UTC')
 
-    os.write(fdout, 
'-------------------------------------------------------------------\n'.encode('utf-8'))
+    os.write(fdout, 
b'-------------------------------------------------------------------\n')
     write_line = '%s - %s\n' % (time.strftime("%a %b %e %H:%M:%S %Z %Y"), 
email)
     os.write(fdout, write_line.encode('utf-8'))
-    os.write(fdout, '\n'.encode('utf-8'))
+    os.write(fdout, b'\n')
     write_line = '- Update to version %s:\n' % upstream_version
     os.write(fdout, write_line.encode('utf-8'))
-    os.write(fdout, '  + \n'.encode('utf-8'))
-    os.write(fdout, '\n'.encode('utf-8'))
+    os.write(fdout, b'  + \n')
+    os.write(fdout, b'\n')
 
     locale.setlocale(locale.LC_TIME, old_lc_time)
     if old_tz:
@@ -3619,8 +3619,9 @@
         # key was not in the section: let's add it
         elif line[0] == '[' and in_section and not added:
             if not empty_line:
-                os.write(fdout, '\n')
-            os.write(fdout, '%s = %s\n\n' % (key, value))
+                os.write(fdout, b'\n')
+            write_line = '%s = %s\n\n' % (key, value)
+            os.write(fdout, write_line.encode('utf-8'))
             added = True
             in_section = False
         elif line[0] == '[' and in_section:
@@ -3633,16 +3634,18 @@
                 line = '%s= %s\n' % (line[:index], value)
                 added = True
 
-        os.write(fdout, line)
+        os.write(fdout, line.encode('utf-8'))
 
         empty_line = line.strip() == ''
 
     if not added:
         if not empty_line:
-            os.write(fdout, '\n')
+            os.write(fdout, b'\n')
         if not in_section:
-            os.write(fdout, '[%s]\n' % (section,))
-        os.write(fdout, '%s = %s\n' % (key, value))
+            write_line = '[%s]\n' % (section,)
+            os.write(fdout, write_line.encode('utf-8'))
+        write_line = '%s = %s\n' % (key, value)
+        os.write(fdout, write_line.encode('utf-8'))
 
     os.close(fdout)
     os.rename(tmp, conffile)


Reply via email to