diff options
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; +} |
