From a9b724eedd0c9d8c36725c5b8f57d51ea9f7dcd1 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 11 Nov 2016 11:58:56 +0100 Subject: add hidden config to set packages as Essential/Important MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can pretty much achieve the same with a local dummy package if you want to, but libapt has an inbuilt setting for essential: "apt" which can be overridden with this option as well – it could be helpful in quick tests and what not so adding this alternative shouldn't really hurt much. We aren't going to document them much through as care must be taken in regards to the binary caches as they aren't invalidated by config options alone, so the effects of old settings could still be in them, similar to the other already existing pkgCacheGen option(s). Closes: 767891 Thanks: Anthony Towns for initial patch --- doc/examples/configure-index | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc/examples') diff --git a/doc/examples/configure-index b/doc/examples/configure-index index dc579c394..2d0fb6c64 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -461,7 +461,12 @@ Debug RunScripts "false"; // debug invocation of external scripts } -pkgCacheGen::Essential "native"; // other modes: all, none, installed +pkgCacheGen +{ + Essential "native"; // other modes: all, none, installed + ForceEssential { "apt"; }; + ForceImportant ""; +} /* Whatever you do, do not use this configuration file!! Take out ONLY the portions you need! */ -- cgit v1.2.3