public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Festi <ffesti@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix Python import directive for more strict Python3 search rules
Date: Mon, 23 Nov 2026 09:29:27 GMT [thread overview]
Message-ID: <179542616744.1.3819571156592876073.rpms-rpm-8341ec3f1562@fedoraproject.org> (raw)
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)
reply other threads:[~2026-11-23 9:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179542616744.1.3819571156592876073.rpms-rpm-8341ec3f1562@fedoraproject.org \
--to=ffesti@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox