Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2020-10-15 13:44:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Thu Oct 15 13:44:21 2020 rev:39 rq:841348 version:6.8.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2020-10-08 13:07:37.270924562 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.3486/python-libvirt-python.changes
    2020-10-15 13:44:29.341155065 +0200
@@ -1,0 +2,7 @@
+Mon Oct 12 19:34:25 UTC 2020 - James Fehlig <[email protected]>
+
+- fix constructor param name for virDomain{Checkpoint,Snapshot}
+  61341150-fix-constructor-param-name.patch
+  boo#1177559
+
+-------------------------------------------------------------------

New:
----
  61341150-fix-constructor-param-name.patch

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

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.g2y80v/_old  2020-10-15 13:44:31.053155734 +0200
+++ /var/tmp/diff_new_pack.g2y80v/_new  2020-10-15 13:44:31.057155735 +0200
@@ -31,6 +31,7 @@
 Source0:        %{srcname}-%{version}.tar.gz
 Source1:        %{srcname}-%{version}.tar.gz.asc
 Source2:        python-libvirt-python.keyring
+Patch0:         61341150-fix-constructor-param-name.patch
 BuildRequires:  fdupes
 BuildRequires:  libvirt-devel = %{version}
 BuildRequires:  python-rpm-macros
@@ -52,6 +53,7 @@
 
 %prep
 %setup -q -n %{srcname}-%{version}
+%patch0 -p1
 
 # Unset execute bit for example scripts; it can introduce spurious
 # RPM dependencies, like /usr/bin/python which can pull in python2

++++++ 61341150-fix-constructor-param-name.patch ++++++
commit 613411502d2cdf3541837710239409044a376b0a
Author: Daniel P. BerrangĂ© <[email protected]>
Date:   Tue Oct 6 10:30:59 2020 +0100

    fix constructor param name for virDomainSnapshot / virDomainCheckpoint
    
    Fixes 7f021c21d6a091ca33615852d6061e75b2500f3f
    Resolves https://gitlab.com/libvirt/libvirt-python/-/issues/4
    
    Signed-off-by: Daniel P. BerrangĂ© <[email protected]>

Index: libvirt-python-6.8.0/generator.py
===================================================================
--- libvirt-python-6.8.0.orig/generator.py
+++ libvirt-python-6.8.0/generator.py
@@ -1482,7 +1482,7 @@ def buildWrappers(module: str) -> None:
                 classes.write("    def __init__(self, conn, _obj=None):\n")
                 classes.write("        self._conn = conn\n")
             elif classname in ["virDomainCheckpoint", "virDomainSnapshot"]:
-                classes.write("    def __init__(self, net, _obj=None):\n")
+                classes.write("    def __init__(self, dom, _obj=None):\n")
                 classes.write("        self._dom = dom\n")
                 classes.write("        self._conn = dom.connect()\n")
             elif classname in ["virNetworkPort"]:


Reply via email to