public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - python: dbmatch keys can be unicode objects also (#219008)
@ 2026-11-23 9:23 Jeremy Katz
0 siblings, 0 replies; only message in thread
From: Jeremy Katz @ 2026-11-23 9:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : e6f84e9f86e205b36e7c9b80123b889f3f2561d4
Author : Jeremy Katz <katzj@fedoraproject.org>
Date : 2006-12-11T18:35:35+00:00
Stats : +17/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/e6f84e9f86e205b36e7c9b80123b889f3f2561d4?branch=pmatilai-v6
Log:
- python: dbmatch keys can be unicode objects also (#219008)
---
diff --git a/rpm-4.4.2-unicodekey.patch b/rpm-4.4.2-unicodekey.patch
new file mode 100644
index 0000000..3578850
--- /dev/null
+++ b/rpm-4.4.2-unicodekey.patch
@@ -0,0 +1,11 @@
+--- rpm-4.4.2/python/rpmts-py.c.unicode 2006-12-11 13:32:38.000000000 -0500
++++ rpm-4.4.2/python/rpmts-py.c 2006-12-11 13:33:13.000000000 -0500
+@@ -1362,7 +1362,7 @@
+
+ if (Key) {
+ /*@-branchstate@*/
+- if (PyString_Check(Key)) {
++ if (PyString_Check(Key) || PyUnicode_Check(Key)) {
+ key = PyString_AsString(Key);
+ len = PyString_Size(Key);
+ } else if (PyInt_Check(Key)) {
diff --git a/rpm.spec b/rpm.spec
index 82eafd1..05a691b 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -20,7 +20,7 @@ Name: rpm
%define version 4.4.2
Version: %{version}
%{expand: %%define rpm_version %{version}}
-Release: 37%{?dist}
+Release: 38%{?dist}
Group: System Environment/Base
Source: ftp://wraptastic.org/pub/rpm-4.4.x/rpm-%{rpm_version}.tar.gz
Source1: mono-find-provides
@@ -61,6 +61,7 @@ Patch32: rpm-4.4.2-debugpaths.patch
Patch33: rpm-4.4.2-transaction-order.patch
Patch34: rpm-4.4.2-debugopt.patch
Patch35: rpm-4.4.2-query-flushbuffer.patch
+Patch36: rpm-4.4.2-unicodekey.patch
License: GPL
Conflicts: patch < 2.5
%ifos linux
@@ -209,6 +210,7 @@ shell-like rules.
%patch33 -p1 -b .order
%patch34 -p1 -b .dbgopt
%patch35 -p1 -b .flush
+%patch36 -p1 -b .unicode
# rebuild configure for ipv6
autoconf
@@ -605,6 +607,9 @@ exit 0
%{__includedir}/popt.h
%changelog
+* Mon Dec 11 2006 Jeremy Katz <katzj@redhat.com> - 4.4.2-38
+- python: dbmatch keys can be unicode objects also (#219008)
+
* Wed Dec 6 2006 Jeremy Katz <katzj@redhat.com> - 4.4.2-37
- rebuild for python 2.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:23 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:23 [rpms/rpm] pmatilai-v6: - python: dbmatch keys can be unicode objects also (#219008) Jeremy Katz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox