~ubuntu-core-dev/apt/oneiric

« back to all changes in this revision

Viewing changes to apt-pkg/versionmatch.cc

  • Committer: Michael Vogt
  • Date: 2011-08-15 12:14:35 UTC
  • mfrom: (1327.97.57 debian-sid)
  • Revision ID: michael.vogt@ubuntu.com-20110815121435-ya00o0nicb1kiz2y
merged from the debian-sid branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
      
61
61
      // Are we a simple specification?
62
62
      string::const_iterator I = Data.begin();
63
 
      for (; I != Data.end() && *I != '='; I++);
 
63
      for (; I != Data.end() && *I != '='; ++I);
64
64
      if (I == Data.end())
65
65
      {
66
66
         // Temporary
152
152
pkgCache::VerIterator pkgVersionMatch::Find(pkgCache::PkgIterator Pkg)
153
153
{
154
154
   pkgCache::VerIterator Ver = Pkg.VersionList();
155
 
   for (; Ver.end() == false; Ver++)
 
155
   for (; Ver.end() == false; ++Ver)
156
156
   {
157
157
      if (Type == Version)
158
158
      {
163
163
         continue;
164
164
      }
165
165
      
166
 
      for (pkgCache::VerFileIterator VF = Ver.FileList(); VF.end() == false; VF++)
 
166
      for (pkgCache::VerFileIterator VF = Ver.FileList(); VF.end() == false; ++VF)
167
167
         if (FileMatch(VF.File()) == true)
168
168
            return Ver;
169
169
   }