]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-preserve-iterator.patch
- rpm-db-ver cap moved to -lib; release 57
[packages/rpm.git] / rpm-preserve-iterator.patch
1 --- rpm-5.4.10/lib/rpmal.c~     2012-11-30 13:20:59.087249280 +0100
2 +++ rpm-5.4.10/lib/rpmal.c      2012-11-30 21:20:20.856611761 +0100
3 @@ -403,6 +403,7 @@
4      const char * KName;
5      availablePackage alp;
6      int rc;
7 +    int savedIx;
8  
9      if (keyp) *keyp = RPMAL_NOMATCH;
10  
11 @@ -450,10 +451,12 @@
12         if (alp->provides != NULL)      /* XXX can't happen */
13         switch (match->type) {
14         case IET_PROVIDES:
15 +           savedIx = rpmdsIx(alp->provides);
16             /* XXX single step on rpmdsNext to regenerate DNEVR string */
17             (void) rpmdsSetIx(alp->provides, match->entryIx - 1);
18             if (rpmdsNext(alp->provides) >= 0)
19                 rc = rpmdsCompare(alp->provides, ds);
20 +           (void) rpmdsSetIx(alp->provides, savedIx);
21  
22             if (rc)
23                 rpmdsNotify(ds, _("(added provide)"), 0);
This page took 0.024941 seconds and 3 git commands to generate.