diff options
| author | Julian Andres Klode <jak@debian.org> | 2021-04-29 08:26:11 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2021-04-29 08:26:11 +0000 |
| commit | 5d81ec308275b625a20b889fa3daa43815ddc80d (patch) | |
| tree | 2bc62cbc973e58ec2f04ae4aa22bcef45b8a1519 /apt-pkg/cachefile.cc | |
| parent | b942031ddfe5b40b527668a8561b5ab137632fd9 (diff) | |
| parent | 6f01e7cc0c6f231711b3b81a81beb3775f0a855a (diff) | |
Merge branch 'pu/autoremove' into 'main'
Mark only provides from protected versioned kernel packages
See merge request apt-team/apt!168
Diffstat (limited to 'apt-pkg/cachefile.cc')
| -rw-r--r-- | apt-pkg/cachefile.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/cachefile.cc b/apt-pkg/cachefile.cc index 5355994d3..4c3cc9586 100644 --- a/apt-pkg/cachefile.cc +++ b/apt-pkg/cachefile.cc @@ -42,6 +42,7 @@ struct pkgCacheFile::Private { bool WithLock = false; + bool InhibitActionGroups = false; }; // CacheFile::CacheFile - Constructor /*{{{*/ @@ -199,6 +200,8 @@ bool pkgCacheFile::BuildDepCache(OpProgress *Progress) DCache.reset(new pkgDepCache(Cache,Policy)); if (_error->PendingError() == true) return false; + if (d->InhibitActionGroups) + DCache->IncreaseActionGroupLevel(); if (DCache->Init(Progress) == false) return false; @@ -376,3 +379,7 @@ void pkgCacheFile::Close() SrcList = NULL; } /*}}}*/ +void pkgCacheFile::InhibitActionGroups(bool const yes) +{ + d->InhibitActionGroups = yes; +} |
