~brian-murray/ubuntu/oneiric/apt/block-fsys-tarfile

« back to all changes in this revision

Viewing changes to apt-pkg/depcache.h

  • Committer: Michael Vogt
  • Date: 2011-06-28 21:41:29 UTC
  • mfrom: (1327.97.34 debian-sid)
  • Revision ID: michael.vogt@ubuntu.com-20110628214129-tait7qp81nvm7wjv
mergedĀ fromĀ debian-sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
      // Various test members for the current status of the package
232
232
      inline bool NewInstall() const {return Status == 2 && Mode == ModeInstall;};
233
233
      inline bool Delete() const {return Mode == ModeDelete;};
 
234
      inline bool Purge() const {return Delete() == true && (iFlags & pkgDepCache::Purge) == pkgDepCache::Purge; };
234
235
      inline bool Keep() const {return Mode == ModeKeep;};
235
236
      inline bool Upgrade() const {return Status > 0 && Mode == ModeInstall;};
236
237
      inline bool Upgradable() const {return Status >= 1;};
241
242
      inline bool InstBroken() const {return (DepState & DepInstMin) != DepInstMin;};
242
243
      inline bool InstPolicyBroken() const {return (DepState & DepInstPolicy) != DepInstPolicy;};
243
244
      inline bool Install() const {return Mode == ModeInstall;};
 
245
      inline bool ReInstall() const {return Delete() == false && (iFlags & pkgDepCache::ReInstall) == pkgDepCache::ReInstall;};
244
246
      inline VerIterator InstVerIter(pkgCache &Cache)
245
247
                {return VerIterator(Cache,InstallVer);};
246
248
      inline VerIterator CandidateVerIter(pkgCache &Cache)