Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package osc-plugin-install for 
openSUSE:Factory checked in at 2021-02-25 18:26:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osc-plugin-install (Old)
 and      /work/SRC/openSUSE:Factory/.osc-plugin-install.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "osc-plugin-install"

Thu Feb 25 18:26:44 2021 rev:5 rq:874726 version:0.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/osc-plugin-install/osc-plugin-install.changes    
2019-07-17 13:20:16.747640559 +0200
+++ 
/work/SRC/openSUSE:Factory/.osc-plugin-install.new.2378/osc-plugin-install.changes
  2021-02-25 18:26:46.070154388 +0100
@@ -1,0 +2,26 @@
+Mon Feb 22 15:24:23 UTC 2021 - Ben Greiner <[email protected]>
+
+- Don't do singlespec.
+  * Depend on python3-certifi directly
+  * Just in case: also provide python3-osc-plugin-install
+  * Keep the original package name
+
+-------------------------------------------------------------------
+Mon Feb 15 14:16:28 UTC 2021 - Oliver Kurz <[email protected]>
+
+- Fix build for multiple python3 variants
+
+-------------------------------------------------------------------
+Thu Oct 22 08:49:38 UTC 2020 - Oliver Kurz <[email protected]>
+
+- Change package to single-spec to fix missing dependencies on python3 
variants on openSUSE Tumbleweed
+
+-------------------------------------------------------------------
+Tue Oct 13 19:55:09 UTC 2020 - [email protected]
+
+- Update to version 0.27:
+  * turn seen.keys() dictionary to a list
+  * fix some python3 incompatibility
+  * decode IO reads as they are byteslike objects now.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ osc-plugin-install.spec ++++++
--- /var/tmp/diff_new_pack.ek8rcy/_old  2021-02-25 18:26:46.674154780 +0100
+++ /var/tmp/diff_new_pack.ek8rcy/_new  2021-02-25 18:26:46.674154780 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package osc-plugin
+# spec file for package osc-plugin-install
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 # Copyright (C) 2012,2013, [email protected], Novell Inc., openSUSE.org
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,32 +27,34 @@
 %define name_ext -test
 %endif
 
+%define oscplugindir %{_prefix}/lib/osc-plugins
 %define         orig_name osc-plugin-install
 Name:           %{orig_name}%{?name_ext}
-Version:        0.26
+Version:        0.27
 Release:        0
 Summary:        Plugin to make package installation easier
 License:        GPL-2.0-only OR GPL-3.0-only
 Group:          Development/Tools/Other
-Url:            https://github.com/openSUSE/%{name}
+URL:            https://github.com/openSUSE/%{name}
 Source:         
https://raw.githubusercontent.com/openSUSE/%{name}/master/osc-install.py
 %if 0%{?_test}
-BuildRequires:  %{orig_name}
+BuildRequires:  %{orig_name} == %{version}
 BuildRequires:  expect
 %if 0%{?suse_version} >= 1330
-BuildRequires:  python-certifi
+BuildRequires:  python3-certifi
 %endif
 %else
 # Needed for directory ownership
 BuildRequires:  osc
 Requires:       osc
 %if 0%{?!fedora_version:1} && 0%{?!centos_version:1} && 
0%{?!scientificlinux_version:1} && 0%{?!rhel_version:1}
-Recommends:     rpm-python rpmdevtools
+Recommends:     rpm-python
+Recommends:     rpmdevtools
 %endif
 %endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-%define oscplugindir %{_prefix}/lib/osc-plugins
+Provides:       python3-%{orig_name} = %{version}-%{release}
 
 %description
 This osc plugin extends osc with the subcommand 'osc install'.
@@ -87,6 +89,7 @@
 # disable debug packages in package test to prevent error about missing files
 %define debug_package %{nil}
 %else
+
 %install
 install -D -m0644 %{S:0} %{buildroot}%{oscplugindir}/osc-install.py
 

++++++ osc-install.py ++++++
--- /var/tmp/diff_new_pack.ek8rcy/_old  2021-02-25 18:26:46.722154811 +0100
+++ /var/tmp/diff_new_pack.ek8rcy/_new  2021-02-25 18:26:46.726154814 +0100
@@ -633,6 +633,7 @@
     max_score = 0
     if len(repos):
         for i in (range(0, len(repos))):
+            repos = list(repos)
             score = self._matches_in_name(repos[i], platform_words)
             if opts.verbose:
                 print("repo %s: score %s" % (repos[i], score))
@@ -797,13 +798,13 @@
         subclass and overwrite this, if a tee'ing to a file-like object is 
inadequate
         tee_read is called whenever fd was found readable. fd is the 
masterside of a PTY.
         """
-        r = os.read(fd, 1024)
+        r = (os.read(fd, 1024)).decode()
         self.tee.write(r)
         # shorten long hex strings and useless urls, they just look ugly.
         r = re.sub('Retrieving: [0-9a-f]+\-', 'Retrieving: ...-', r, re.M)
         r = re.sub("Adding repository '\S+'", 'Adding: ...', r, re.M)
         r = re.sub("Building repository '\S+' cache", 'Cache: ...', r, re.M)
-        return self.silent if self.silent else r
+        return self.silent if self.silent else r.encode()
 
     def __str__(self):
         return self.tee.getvalue() if self.internal_fd else self.tee
@@ -830,7 +831,7 @@
     p = subprocess.Popen(cmdv, stdout=subprocess.PIPE)
     all = ''
     while True:
-        r = p.stdout.read()
+        r = p.stdout.read().decode()
         if tee:
             sys.stdout.write(r)
             if progress is not None:

Reply via email to