]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-prereq.patch
- rpm 4.4 drops legacy PreReq support, so avoid prereq loops in newly generated indexes
[packages/poldek.git] / poldek-prereq.patch
1 --- poldek-0.18.9/capreq.c.orig 2004-12-30 13:05:19.000000000 +0100
2 +++ poldek-0.18.9/capreq.c      2005-07-25 15:16:01.000000000 +0200
3 @@ -646,10 +646,13 @@
4                      cr->cr_flags |= CAPREQ_PREREQ | CAPREQ_PREREQ_UN;
5                  }
6  #else
7 +#  if RPMSENSE_PREREQ != RPMSENSE_ANY /* rpm 4.4 drops legacy PreReq support */
8                  if (isLegacyPreReq(flag)) { /* prepared by rpm < 4.0.2  */
9                      cr->cr_flags |= CAPREQ_PREREQ | CAPREQ_PREREQ_UN;
10 -                
11 -                } else if (isInstallPreReq(flag)) {
12 +
13 +                } else
14 +#  endif
15 +               if (isInstallPreReq(flag)) {
16                      cr->cr_flags |= CAPREQ_PREREQ;
17                  
18                  } else if (isErasePreReq(flag)) {
This page took 0.029812 seconds and 4 git commands to generate.