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

  Server: rpm5.org                         Name:   Per Øyvind Karlsen
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: rpm                              Date:   06-Aug-2009 01:07:36
  Branch: HEAD                             Handle: 2009080523073600

  Modified files:
    rpm/lib                 tevr.c

  Log:
    update EVR_t member names to fix build

  Summary:
    Revision    Changes     Path
    2.5         +8  -8      rpm/lib/tevr.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/tevr.c
  ============================================================================
  $ cvs diff -u -r2.4 -r2.5 tevr.c
  --- rpm/lib/tevr.c    19 Dec 2008 18:04:15 -0000      2.4
  +++ rpm/lib/tevr.c    5 Aug 2009 23:07:36 -0000       2.5
  @@ -188,20 +188,20 @@
   
        /* Split E:V-R into components. */
        xx = rpmEVRparse(arg, evr);
  -     if (evr->E == NULL) {
  -         evr->E = "0";
  +     if (evr->F[RPMEVR_E] == NULL) {
  +         evr->F[RPMEVR_E] = "0";
            s.Emiss++;
        }
  -     if (evr->R == NULL) {
  -         evr->R = "";
  +     if (evr->F[RPMEVR_R] == NULL) {
  +         evr->F[RPMEVR_R] = "";
            s.Rmiss++;
        }
  -     rpmdictAdd(dict, evr->E);
  -     rpmdictAdd(dict, evr->V);
  -     rpmdictAdd(dict, evr->R);
  +     rpmdictAdd(dict, evr->F[RPMEVR_E]);
  +     rpmdictAdd(dict, evr->F[RPMEVR_V]);
  +     rpmdictAdd(dict, evr->F[RPMEVR_R]);
   
   if (__debug)
  -fprintf(stderr, "%5d: %s => %s:%s-%s\n", s.total, arg, evr->E, evr->V, 
evr->R);
  +fprintf(stderr, "%5d: %s => %s:%s-%s\n", s.total, arg, evr->F[RPMEVR_E], 
evr->F[RPMEVR_V], evr->F[RPMEVR_R]);
   
        evr->str = _free(evr->str);
       }
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to