From 9adb9778d11db138d645e037e092db1fb64b5d4a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 29 Aug 2015 13:50:22 +0200 Subject: implement indextargets option 'DefaultEnabled' Some targets like Contents-udeb are special-needs targets. Shipping the configuration snippet for them is okay, but they shouldn't be downloaded by default. Forcing the user to enable targets by uncommenting targets is wrong and this would still not really solve the problem completely as even if you want to download some -udebs it will probably not be for all sources you have enabled, so having the possibility of disabling a target by default, but giving the user the option to enable it on a per-source entry basis is better. --- cmdline/apt-get.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index f5c42b279..d3b3da240 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1505,6 +1505,8 @@ static bool DoIndexTargets(CommandLine &CmdL) stanza << "PDiffs: " << O->second << "\n"; else if (O->first == "COMPRESSIONTYPES") stanza << "CompressionTypes: " << O->second << "\n"; + else if (O->first == "DEFAULTENABLED") + stanza << "DefaultEnabled: " << O->second << "\n"; else stanza << format_key(O->first) << ": " << O->second << "\n"; } -- cgit v1.2.3-70-g09d2