X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a2cba9cca24762c090ee6988f14ae40f92a6441f..c6ec544822a6a5db9f8a507b08381f19c8787761:/apt-pkg/depcache.cc?ds=sidebyside diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 72a0bb542..6943dcfcd 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -867,6 +867,7 @@ bool pkgDepCache::IsDeleteOk(PkgIterator const &Pkg,bool rPurge, if (FromUser == false && Pkg->CurrentVer == 0) { StateCache &P = PkgState[Pkg->ID]; + // Status == 2 means this applies for new installs only if (P.InstallVer != 0 && P.Status == 2 && (P.Flags & Flag::Auto) != Flag::Auto) { if (DebugMarker == true)