~udeshike/apt/apt-ishan

« back to all changes in this revision

Viewing changes to apt-pkg/pkgcache.cc

  • Committer: David Kalnischkies
  • Date: 2011-03-08 18:32:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2091.
  • Revision ID: kalnischkies@gmail.com-20110308183235-zxpdc9aby7rurhjs
Remove the "pseudopackage" handling of Architecture: all packages for
Multi-Arch; instead, Arch: all packages only satisfy dependencies for
the native arch, except where the Arch: all package is declared
Multi-Arch: foreign.  (Closes: #613584)

This has the sideeffect that arch:all packages internally show up as
coming from the native arch - so packages with the architecture "all"
doesn't exist any longer in the pkgcache

Show diffs side-by-side

added added

removed removed

Lines of Context:
737
737
   return false;
738
738
}
739
739
                                                                        /*}}}*/
740
 
// VerIterator::Pseudo - Check if this version is a pseudo one          /*{{{*/
741
 
// ---------------------------------------------------------------------
742
 
/* Sometimes you have the need to express dependencies with versions
743
 
   which doesn't really exist or exist multiply times for "different"
744
 
   packages. We need these versions for dependency resolution but they
745
 
   are a problem everytime we need to download/install something. */
746
 
bool pkgCache::VerIterator::Pseudo() const
747
 
{
748
 
   if (S->MultiArch == pkgCache::Version::All &&
749
 
           strcmp(Arch(true),"all") != 0)
750
 
   {
751
 
           GrpIterator const Grp = ParentPkg().Group();
752
 
           return (Grp->LastPackage != Grp->FirstPackage);
753
 
   }
754
 
   return false;
755
 
}
 
740
// VerIterator::Pseudo - deprecated no-op method                        /*{{{*/
 
741
bool pkgCache::VerIterator::Pseudo() const { return false; }
756
742
                                                                        /*}}}*/
757
743
// VerIterator::NewestFile - Return the newest file version relation    /*{{{*/
758
744
// ---------------------------------------------------------------------