public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Don't mess up problem pkgNEVR in python ts.check() (#349091)
Date: Mon, 23 Nov 2026 09:24:41 GMT [thread overview]
Message-ID: <179542588193.1.4855217550046836320.rpms-rpm-078fe119bb2c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 078fe119bb2c6bcef1e5a5c3c96b74784d33dbf3
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2007-10-24T06:59:34+00:00
Stats : +33/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/078fe119bb2c6bcef1e5a5c3c96b74784d33dbf3?branch=pmatilai-v6
Log:
- Don't mess up problem pkgNEVR in python ts.check() (#349091)
---
diff --git a/rpm-4.4.2.2-pyproblem.patch b/rpm-4.4.2.2-pyproblem.patch
new file mode 100644
index 0000000..b9f942c
--- /dev/null
+++ b/rpm-4.4.2.2-pyproblem.patch
@@ -0,0 +1,27 @@
+changeset: 6193:cc2abc150d64
+tag: tip
+user: Panu Matilainen <pmatilai@redhat.com>
+date: Wed Oct 24 09:50:13 2007 +0300
+summary: Don't mess up problem pkgNEVR in python ts.check() (rhbz#349091)
+
+diff -r 751cf2c7614e -r cc2abc150d64 python/rpmts-py.c
+--- a/python/rpmts-py.c Thu Oct 18 09:34:54 2007 +0300
++++ b/python/rpmts-py.c Wed Oct 24 09:50:13 2007 +0300
+@@ -439,7 +439,7 @@ fprintf(stderr, "*** rpmts_Check(%p) ts
+ if (p->type == RPMPROB_BADRELOCATE)
+ continue;
+
+- byName = p->pkgNEVR;
++ byName = strdup(p->pkgNEVR);
+ if ((byArch= strrchr(byName, '.')) != NULL)
+ *byArch++ = '\0';
+ if ((byRelease = strrchr(byName, '-')) != NULL)
+@@ -475,6 +475,7 @@ fprintf(stderr, "*** rpmts_Check(%p) ts
+ #endif
+ PyList_Append(list, (PyObject *) cf);
+ Py_DECREF(cf);
++ free(byName);
+ }
+
+ ps = rpmpsFree(ps);
+
diff --git a/rpm.spec b/rpm.spec
index b558557..807ecff 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -6,7 +6,7 @@
Summary: The RPM package management system
Name: rpm
Version: 4.4.2.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source: http://rpm.org/releases/rpm-4.4.x/%{name}-%{version}.tar.gz
@@ -20,6 +20,7 @@ Patch7: rpm-4.4.2.1-no-popt.patch
Patch8: rpm-4.4.2.2-nonutf-comment.patch
Patch9: rpm-4.4.2.2-osgideps.patch
Patch10: rpm-4.4.2.2-debugedit-fpc.patch
+Patch11: rpm-4.4.2.2-pyproblem.patch
# XXX Beware, this is one murky license, partially GPL/LGPL dual-licensed
# and several different components with their own licenses included...
@@ -146,6 +147,7 @@ that will manipulate RPM packages and databases.
%patch8 -p1 -b .nonutf-comment
%patch9 -p1 -b .osgideps
%patch10 -p1 -b .debugedit-fpc
+%patch11 -p1 -b .pyproblem
# force external popt
rm -rf popt/
@@ -408,6 +410,9 @@ exit 0
%endif
%changelog
+* Wed Oct 24 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.2-6
+- Don't mess up problem pkgNEVR in python ts.check() (#349091)
+
* Mon Oct 22 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.2-5
- add missing popt-devel dependency to rpm-devel
reply other threads:[~2026-11-23 9:24 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=179542588193.1.4855217550046836320.rpms-rpm-078fe119bb2c@fedoraproject.org \
--to=pmatilai@fedoraproject.org \
--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