summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-07-04 16:38:42 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-07-04 16:38:42 +0000
commit45f7495cf1b62d402616caffacd9f343ca71c44d (patch)
treeadfc6de5c692d41e601dd74f0b2b6220f63004a1 /apt-pkg
parentf8ac1720a94468d1384e88a57729e6d9801b56fd (diff)
* invert the auto-mark flag only for new installs (in MarkInstall()), keep it as it is for upgrades
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 9adc4e390..4c52c6c71 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -708,7 +708,9 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
P.Mode = ModeInstall;
P.InstallVer = P.CandidateVer;
- P.Flags &= ~Flag::Auto;
+ // invert the auto-flag only for new installs, not for upgrades
+ if(P.Status == 0)
+ P.Flags &= ~Flag::Auto;
if (P.CandidateVer == (Version *)Pkg.CurrentVer())
P.Mode = ModeKeep;