RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Per Øyvind Karlsen
  Root:   /v/rpm/cvs                       Email:  pkarl...@rpm5.org
  Module: rpm                              Date:   12-Jul-2011 12:41:19
  Branch: HEAD                             Handle: 2011071210411801

  Modified files:
    rpm                     CHANGES
    rpm/lib                 rpmds.c
    rpm/rpmdb               rpmevr.c

  Log:
    fix rpm not comparing distepoch if missing from one package when doing
    comparision.

  Summary:
    Revision    Changes     Path
    1.3662      +2  -0      rpm/CHANGES
    2.180       +1  -1      rpm/lib/rpmds.c
    1.40        +1  -1      rpm/rpmdb/rpmevr.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.3661 -r1.3662 CHANGES
  --- rpm/CHANGES       12 Jul 2011 10:39:52 -0000      1.3661
  +++ rpm/CHANGES       12 Jul 2011 10:41:19 -0000      1.3662
  @@ -1,4 +1,6 @@
   HEAD:
  +    - proyvind: fix rpm not comparing distepoch if missing from one package
  +     when doing comparision.
       - proyvind: fix rpm treating packages of same NVRA, but different 
distepoch
        as equal, preventing upgrades between them.
       - proyvind: dbconvert: fix segfault when no root is specified.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/lib/rpmds.c
  ============================================================================
  $ cvs diff -u -r2.179 -r2.180 rpmds.c
  --- rpm/lib/rpmds.c   11 Apr 2011 05:08:15 -0000      2.179
  +++ rpm/lib/rpmds.c   12 Jul 2011 10:41:18 -0000      2.180
  @@ -4065,7 +4065,7 @@
           case 'D':    ix = RPMEVR_D;  /*@switchbreak@*/break;
           }
   #if defined(RPM_VENDOR_MANDRIVA) /* mdvbz#55810 */
  -     if(ix >= RPMEVR_R && (bFlags & (~RPMSENSE_GREATER & RPMSENSE_EQUAL))
  +     if(ix == RPMEVR_R && (bFlags & (~RPMSENSE_GREATER & RPMSENSE_EQUAL))
                                && *(b->F[ix]) == '\0')
                            break;
        if (a->F[ix] && b->F[ix])
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/rpmevr.c
  ============================================================================
  $ cvs diff -u -r1.39 -r1.40 rpmevr.c
  --- rpm/rpmdb/rpmevr.c        20 Apr 2011 15:27:35 -0000      1.39
  +++ rpm/rpmdb/rpmevr.c        12 Jul 2011 10:41:19 -0000      1.40
  @@ -286,7 +286,7 @@
        case 'D':       ix = RPMEVR_D;  /*@switchbreak@*/break;
        }
   #if defined(RPM_VENDOR_MANDRIVA) /* mdvbz#55810 */
  -     if(ix >= RPMEVR_R && (b->Flags & (~RPMSENSE_GREATER & RPMSENSE_EQUAL))
  +     if(ix == RPMEVR_R && (b->Flags & (~RPMSENSE_GREATER & RPMSENSE_EQUAL))
                                && *(b->F[ix]) == '\0')
                            break;
   #endif
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to