diff options
author | David Kalnischkies <david@kalnischkies.de> | 2021-08-28 18:08:15 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2021-08-28 22:21:35 +0200 |
commit | e267d1ee54e3e2a9478201192293f3f8c72e118c (patch) | |
tree | 040229ac25490ef97e3d25339968b5cbf32534a7 /apt-private | |
parent | 255ec5a46aa55ad96e7dc7f9d43d5cdf71627812 (diff) |
Inhibit autoremove calculation in apt-mark and apt show
As we never display the information in these code paths there isn't a
lot of point in calculating it first saving us some precious CPU cycles.
References: d6f3458badf2cfea3ca7de7632ae31daff5742be
Diffstat (limited to 'apt-private')
-rw-r--r-- | apt-private/private-show.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc index 30b99b013..07b5a3ae3 100644 --- a/apt-private/private-show.cc +++ b/apt-private/private-show.cc @@ -300,6 +300,7 @@ static bool DisplayRecordV2(pkgCacheFile &CacheFile, pkgRecords &Recs, /*{{{*/ bool ShowPackage(CommandLine &CmdL) /*{{{*/ { pkgCacheFile CacheFile; + CacheFile.InhibitActionGroups(true); auto VolatileCmdL = GetAllPackagesAsPseudo(CacheFile.GetSourceList(), CmdL, AddVolatileBinaryFile, ""); if (unlikely(CacheFile.GetPkgCache() == nullptr)) |