]> git.pld-linux.org Git - packages/rpm.git/blame_incremental - rpm-provides-dont-obsolete.patch
- rpm2cpio is a script now, rpm2cpio.sh vanished
[packages/rpm.git] / rpm-provides-dont-obsolete.patch
... / ...
CommitLineData
1--- rpm-4.3/lib/depends.c.orig 2003-05-15 18:16:51.000000000 +0200
2+++ rpm-4.3/lib/depends.c 2003-06-29 00:17:42.000000000 +0200
3@@ -343,8 +343,12 @@
4
5 /* On upgrade, erase older packages of same color (if any). */
6
7+ /* NOTE: in PLD we don't want to remove packages which only provided
8+ * %{name} (e.g. perl-modules in case of some newer perl modules),
9+ * so we use NAME instead of PROVIDENAME (as in vanilla rpm) here */
10+
11 if (!(depFlags & RPMDEPS_FLAG_NOUPGRADE)) {
12- mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, rpmteN(p), 0);
13+ mi = rpmtsInitIterator(ts, RPMTAG_NAME, rpmteN(p), 0);
14 while((oh = rpmdbNextIterator(mi)) != NULL) {
15 int lastx;
16 rpmte q;
17
This page took 0.026769 seconds and 4 git commands to generate.