public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - Fix Python import directive for more strict Python3 search rules
@ 2026-11-23  9:29 Florian Festi
  0 siblings, 0 replies; only message in thread
From: Florian Festi @ 2026-11-23  9:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 8341ec3f15622f44b398ccd2015f34845c5f1838
            Author : Florian Festi <ffesti@redhat.com>
            Date   : 2015-06-29T12:18:50+02:00
            Stats  : +34/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/8341ec3f15622f44b398ccd2015f34845c5f1838?branch=pmatilai-v6

            Log:
            - Fix Python import directive for more strict Python3 search rules
- Resolves: #1236493

---
diff --git a/rpm-4.12.0-Fix-Python3-import.patch b/rpm-4.12.0-Fix-Python3-import.patch
new file mode 100644
index 0000000..afa7cae
--- /dev/null
+++ b/rpm-4.12.0-Fix-Python3-import.patch
@@ -0,0 +1,29 @@
+From 97989236c0f39ccbc7f2c1d52cc30f167fd827fe Mon Sep 17 00:00:00 2001
+From: Florian Festi <ffesti@redhat.com>
+Date: Mon, 26 Jan 2015 14:22:34 +0100
+Subject: [PATCH] Fix Python import directive for more strict Python3 search
+ rules
+
+Fixes http://rpm.org/ticket/885
+---
+ python/rpm/transaction.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/python/rpm/transaction.py b/python/rpm/transaction.py
+index db7ca67..91a6cc1 100644
+--- a/python/rpm/transaction.py
++++ b/python/rpm/transaction.py
+@@ -37,8 +37,8 @@ class TransactionSet(TransactionSetCore):
+         return self._wrapSetGet('_probFilter', ignoreSet)
+ 
+     def parseSpec(self, specfile):
+-        import _rpmb
+-        return _rpmb.spec(specfile)
++        import rpm._rpmb
++        return rpm._rpmb.spec(specfile)
+ 
+     def getKeys(self):
+         keys = []
+-- 
+2.1.0
+

diff --git a/rpm.spec b/rpm.spec
index 7a10cfd..223043f 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}16%{?dist}
+Release: %{?snapver:0.%{snapver}.}17%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -68,6 +68,7 @@ Patch106: rpm-4.12.0-golang-debuginfo.patch
 Patch107: rpm-4.12.0-whatrecommends.patch
 Patch108: rpm-4.12.0-gpg-passphrase1.patch
 Patch109: rpm-4.12.0-gpg-passphrase2.patch
+Patch110: rpm-4.12.0-Fix-Python3-import.patch
 
 # These are not yet upstream
 Patch302: rpm-4.7.1-geode-i686.patch
@@ -552,6 +553,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Jun 29 2015 Florian Festi <ffesti@rpm.org> - 4.12.0.1-17
+- Fix Python import directive for more strict Python3 search rules (#1236493)
+
 * Fri Jun 19 2015 Lubos Kardos <lkardos@redhat.com> 4.12.0.1-16
 - Allow gpg to get passphrase by itself (#1228234)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:29 [rpms/rpm] pmatilai-v6: - Fix Python import directive for more strict Python3 search rules Florian Festi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox