summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r--apt-pkg/depcache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 39e30a38d..fa0bd8ed5 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -1115,7 +1115,9 @@ static bool MarkInstall_DiscardCandidate(pkgDepCache &Cache, pkgCache::PkgIterat
{
auto &State = Cache[Pkg];
State.CandidateVer = State.InstallVer;
+ auto const oldStatus = State.Status;
State.Update(Pkg, Cache);
+ State.Status = oldStatus;
return true;
}
/*}}}*/