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. --- apt-pkg/indexfile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg/indexfile.h') diff --git a/apt-pkg/indexfile.h b/apt-pkg/indexfile.h index 8f7e9dc05..f267247c1 100644 --- a/apt-pkg/indexfile.h +++ b/apt-pkg/indexfile.h @@ -87,6 +87,7 @@ class IndexTarget /*{{{*/ EXISTING_FILENAME, PDIFFS, COMPRESSIONTYPES, + DEFAULTENABLED, }; std::string Option(OptionKeys const Key) const; bool OptionBool(OptionKeys const Key) const; -- cgit v1.2.3