]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- jbj: fix: reverse arrows on erasure dependency graph.
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 7 Apr 2008 18:57:18 +0000 (18:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  should fix erase+install problems on rpm upgrades

Changed files:
    rpm-rpm5-patchset-10061.patch -> 1.1.2.1

rpm-rpm5-patchset-10061.patch [new file with mode: 0644]

diff --git a/rpm-rpm5-patchset-10061.patch b/rpm-rpm5-patchset-10061.patch
new file mode 100644 (file)
index 0000000..fe1d1bc
--- /dev/null
@@ -0,0 +1,33 @@
+Index: rpm/CHANGES
+ 5.0.0 -> 5.1a1:
++    - jbj: fix: reverse arrows on erasure dependency graph.
+     - rse: provide the necessary pre-processor macros to allow misc/err.h to compile with Sun Studio 12 under Solaris 10
+     - jbj: rpmrepo: be kind to the sqlite3 deprived.
+     - jbj: rpmrepo: cleanly separate SQL representation from execution.
+Index: rpm/lib/depends.c
+RCS File: /v/rpm/cvs/rpm/lib/depends.c,v
+rcsdiff -q -kk '-r1.392' '-r1.393' -u '/v/rpm/cvs/rpm/lib/depends.c,v' 2>/dev/null
+--- lib/depends.c      2008/03/17 09:50:01     1.392
++++ lib/depends.c      2008/03/31 23:00:56     1.393
+@@ -1882,6 +1882,13 @@
+       return 0;
+     selected[i] = 1;
++    /* Erasures are reversed installs. */
++    if (teType == TR_REMOVED) {
++      rpmte r = p;
++      p = q;
++      q = r;
++    }
++
+     /* T3. Record next "q <- p" relation (i.e. "p" requires "q"). */
+     rpmteTSI(p)->tsi_count++;                 /* bump p predecessor count */
+@@ -1899,6 +1906,7 @@
+     tsi->tsi_next = rpmteTSI(q)->tsi_next;
+     rpmteTSI(q)->tsi_next = tsi;
+     rpmteTSI(q)->tsi_qcnt++;                  /* bump q successor count */
++
+     return 0;
+ }
+ /*@=mustmod@*/
This page took 0.036317 seconds and 4 git commands to generate.