Fix issue with ModuleIndex when input contains only Obsoletes documents
Fix import issue when built with Python 2 support Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
c955134811
commit
d64a094808
3 changed files with 192 additions and 1 deletions
31
0001-Add-missing-staticmethod-for-python2.patch
Normal file
31
0001-Add-missing-staticmethod-for-python2.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
From d8722735c4c5198a0a11ddaebf011034f677aa7f Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||
Date: Mon, 11 Jan 2021 15:25:03 -0500
|
||||
Subject: [PATCH 1/2] Add missing @staticmethod for python2
|
||||
|
||||
Fixes: https://github.com/fedora-modularity/libmodulemd/issues/537
|
||||
|
||||
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
||||
---
|
||||
bindings/python/gi/overrides/Modulemd.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/bindings/python/gi/overrides/Modulemd.py b/bindings/python/gi/overrides/Modulemd.py
|
||||
index 9e6d1c212e663c4d1392ce9c8d4ea66abbc9f7ac..23d5218cbe37c9d08f9d88debb541f6467b68404 100644
|
||||
--- a/bindings/python/gi/overrides/Modulemd.py
|
||||
+++ b/bindings/python/gi/overrides/Modulemd.py
|
||||
@@ -26,10 +26,11 @@ Modulemd = get_introspection_module("Modulemd")
|
||||
|
||||
__all__ = []
|
||||
|
||||
|
||||
class ModulemdUtil(object):
|
||||
+ @staticmethod
|
||||
def strip_gtype(method):
|
||||
@functools.wraps(method)
|
||||
def wrapped(*args, **kwargs):
|
||||
ret = method(*args, **kwargs)
|
||||
if len(ret) == 2:
|
||||
--
|
||||
2.29.2
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue