public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Nasrat <pnasrat@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: New version
Date: Mon, 23 Nov 2026 09:23:22 GMT	[thread overview]
Message-ID: <179542580230.1.17121018017062009903.rpms-rpm-d8085d2c563f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : d8085d2c563f86d2c6047dee6ce6b7da55da8059
Author : Paul Nasrat <pnasrat@fedoraproject.org>
Date   : 2005-11-29T17:01:59+00:00
Stats  : +66/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/d8085d2c563f86d2c6047dee6ce6b7da55da8059?branch=pmatilai-v6

Log:
New version

---
diff --git a/rpm-4.4.2-exclude.patch b/rpm-4.4.2-exclude.patch
new file mode 100644
index 0000000..3803f5b
--- /dev/null
+++ b/rpm-4.4.2-exclude.patch
@@ -0,0 +1,60 @@
+--- rpm-4.4.2/rpmdb/fprint.h.exclude	2003-05-08 16:39:31.000000000 -0400
++++ rpm-4.4.2/rpmdb/fprint.h	2005-11-29 11:40:29.000000000 -0500
+@@ -79,6 +79,12 @@
+ 	/*@modifies db, *matchList, rpmGlobalMacroContext,
+ 		fileSystem, internalState @*/;
+ 
++int rpmdbFindFpListExclude(/*@null@*/ rpmdb db, fingerPrint  * fpList,
++		/*@out@*/ dbiIndexSet * matchList, int numItems, unsigned int exclude)
++	/*@globals rpmGlobalMacroContext, fileSystem, internalState @*/
++	/*@modifies db, *matchList, rpmGlobalMacroContext,
++		fileSystem, internalState @*/;
++
+ /* Be carefull with the memory... assert(*fullName == '/' || !scareMemory) */
+ 
+ /**
+--- rpm-4.4.2/rpmdb/rpmdb.c.exclude	2005-02-15 22:18:19.000000000 -0500
++++ rpm-4.4.2/rpmdb/rpmdb.c	2005-11-29 11:47:10.000000000 -0500
+@@ -3388,11 +3388,17 @@
+     return 0;
+ }
+ 
+-/* XXX transaction.c */
+-/*@-compmempass@*/
+ int rpmdbFindFpList(rpmdb db, fingerPrint * fpList, dbiIndexSet * matchList, 
+ 		    int numItems)
+ {
++    return rpmdbFindFpListExclude(db, fpList, matchList, numItems, 0);
++}
++
++/* XXX transaction.c */
++/*@-compmempass@*/
++int rpmdbFindFpListExclude(rpmdb db, fingerPrint * fpList, dbiIndexSet * matchList, 
++		    int numItems, unsigned int exclude)
++{
+ DBT * key;
+ DBT * data;
+     HGE_t hge = (HGE_t)headerGetEntryMinMemory;
+@@ -3424,7 +3430,10 @@
+ key->size = strlen((char *)key->data);
+ if (key->size == 0) key->size++;	/* XXX "/" fixup. */
+ 
+-	if (skipDir(fpList[i].entry->dirName))
++	/* HACK HACK HACK: don't skip dirs while removing
++	 * packages as we will loose files on conflicts.
++	 * exclude is not zero when removing */
++	if (!exclude && skipDir(fpList[i].entry->dirName))
+ 	    continue;
+ 
+ 	xx = rpmdbGrowIterator(mi, i);
+--- rpm-4.4.2/lib/transaction.c.exclude	2005-11-29 11:40:29.000000000 -0500
++++ rpm-4.4.2/lib/transaction.c	2005-11-29 11:40:29.000000000 -0500
+@@ -1750,7 +1750,7 @@
+ 	(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0);
+ 	/* Extract file info for all files in this package from the database. */
+ 	matches = xcalloc(fc, sizeof(*matches));
+-	if (rpmdbFindFpList(rpmtsGetRdb(ts), fi->fps, matches, fc)) {
++	if (rpmdbFindFpListExclude(rpmtsGetRdb(ts), fi->fps, matches, fc, rpmteType(p) == TR_REMOVED ? fi->record : 0)) {
+ 	    ps = rpmpsFree(ps);
+ 	    rpmtsFreeLock(lock);
+ 	    return 1;	/* XXX WTFO? */

diff --git a/rpm.spec b/rpm.spec
index 68972b7..472a3e8 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: 8
+Release: 9
 Group: System Environment/Base
 Source: ftp://wraptastic.org/pub/rpm-4.4.x/rpm-%{rpm_version}.tar.gz
 Patch0: rpm-4.4.1-hkp-disable.patch
@@ -35,6 +35,7 @@ Patch8: rpm-4.4.2-db3-param.patch
 Patch9: rpm-4.4.2-contextverify.patch
 Patch10: rpm-4.4.2-popt-charset.patch
 Patch11: rpm-4.4.2-ghost-conflicts.patch
+Patch12: rpm-4.4.2-exclude.patch
 License: GPL
 Conflicts: patch < 2.5
 %ifos linux
@@ -158,6 +159,7 @@ shell-like rules.
 %patch9 -p1  -b .contextverify
 %patch10 -p1  -b .charset
 %patch11 -p1  -b .ghostconflicts
+%patch12 -p1  -b .exclude
 
 
 %build
@@ -550,6 +552,9 @@ exit 0
 %{__includedir}/popt.h
 
 %changelog
+* Tue Nov 29 2005 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-9
+- Don't skipDirs on erasures (#140055)
+
 * Mon Nov 28 2005 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-8
 - Add elfutils Build Requires to rpmbuild (#155129)
 - Don't do conflicts if both files %ghost(#155256)

             reply	other threads:[~2026-11-23  9:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:23 Paul Nasrat [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-23  9:23 [rpms/rpm] pmatilai-v6: new version Paul Nasrat
2026-11-23  9:23 [rpms/rpm] pmatilai-v6: New version Paul Nasrat
2026-11-23  9:23 Paul Nasrat

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=179542580230.1.17121018017062009903.rpms-rpm-d8085d2c563f@fedoraproject.org \
    --to=pnasrat@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