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:   22-Dec-2010 23:39:04
  Branch: rpm-5_3                          Handle: 2010122222390400

  Modified files:           (Branch: rpm-5_3)
    rpm/lib                 query.c

  Log:
    work around  'rpm -qf' not reporting files not owned  on mandriva for
    now..

  Summary:
    Revision    Changes     Path
    2.215.2.2   +4  -0      rpm/lib/query.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/query.c
  ============================================================================
  $ cvs diff -u -r2.215.2.1 -r2.215.2.2 query.c
  --- rpm/lib/query.c   26 Oct 2010 18:27:01 -0000      2.215.2.1
  +++ rpm/lib/query.c   22 Dec 2010 22:39:04 -0000      2.215.2.2
  @@ -694,6 +694,10 @@
        qva->qva_mi = rpmtsInitIterator(ts, RPMTAG_FILEPATHS, fn, 0);
        if (qva->qva_mi == NULL && !provides_checked && !gotpattern)
            qva->qva_mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, fn, 0);
  +#if defined(RPM_VENDOR_MANDRIVA)
  +     if(rpmmiCount(qva->qva_mi) == 0)
  +         qva->qva_mi = rpmmiFree(qva->qva_mi);
  +#endif
   
        if (qva->qva_mi == NULL) {
            struct stat sb;
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to