]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- rpm 4.4 drops legacy PreReq support, so avoid prereq loops in newly generated indexes
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 25 Jul 2005 13:36:24 +0000 (13:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-prereq.patch -> 1.1

poldek-prereq.patch [new file with mode: 0644]

diff --git a/poldek-prereq.patch b/poldek-prereq.patch
new file mode 100644 (file)
index 0000000..ba29074
--- /dev/null
@@ -0,0 +1,18 @@
+--- poldek-0.18.9/capreq.c.orig        2004-12-30 13:05:19.000000000 +0100
++++ poldek-0.18.9/capreq.c     2005-07-25 15:16:01.000000000 +0200
+@@ -646,10 +646,13 @@
+                     cr->cr_flags |= CAPREQ_PREREQ | CAPREQ_PREREQ_UN;
+                 }
+ #else
++#  if RPMSENSE_PREREQ != RPMSENSE_ANY /* rpm 4.4 drops legacy PreReq support */
+                 if (isLegacyPreReq(flag)) { /* prepared by rpm < 4.0.2  */
+                     cr->cr_flags |= CAPREQ_PREREQ | CAPREQ_PREREQ_UN;
+-                
+-                } else if (isInstallPreReq(flag)) {
++
++                } else
++#  endif
++              if (isInstallPreReq(flag)) {
+                     cr->cr_flags |= CAPREQ_PREREQ;
+                 
+                 } else if (isErasePreReq(flag)) {
This page took 0.029602 seconds and 4 git commands to generate.