diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:03 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:03 +0000 |
commit | 6321777b7bad1303a32b2d5691327adb74074e0a (patch) | |
tree | 0ac2e154678f150504bdcac4ee657ac3e8c0d0df /apt-pkg/depcache.h | |
parent | 2800688553a05fdac9fa732fc0af0d5318aee122 (diff) |
El Te Dee Patch
Author: jgg
Date: 2000-05-31 02:49:37 GMT
El Te Dee Patch
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r-- | apt-pkg/depcache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 6ce204e65..3bb677dc1 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: depcache.h,v 1.12 1999/10/22 05:58:54 jgg Exp $ +// $Id: depcache.h,v 1.13 2000/05/31 02:49:37 jgg Exp $ /* ###################################################################### DepCache - Dependency Extension data for the cache @@ -95,7 +95,7 @@ class pkgDepCache : public pkgCache inline bool Keep() const {return Mode == ModeKeep;}; inline bool Upgrade() const {return Status > 0 && Mode == ModeInstall;}; inline bool Upgradable() const {return Status >= 1;}; - inline bool Downgrade() const {return Status < 0;}; + inline bool Downgrade() const {return Status < 0 && Mode == ModeInstall;}; inline bool Held() const {return Status != 0 && Keep();}; inline bool NowBroken() const {return (DepState & DepNowMin) != DepNowMin;}; inline bool InstBroken() const {return (DepState & DepInstMin) != DepInstMin;}; @@ -165,6 +165,7 @@ class pkgDepCache : public pkgCache void MarkDelete(PkgIterator const &Pkg,bool Purge = false); void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true); void SetReInstall(PkgIterator const &Pkg,bool To); + void SetCandidateVersion(VerIterator TargetVer); // This is for debuging void Update(OpProgress *Prog = 0); |