From 3090ae6972fd0e15767a96708c248f3ab87502f2 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 30 Aug 2015 22:34:28 +0200 Subject: detect and deal with indextarget duplicates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Multiple targets downloading the same file is bad™ as it leads us to all sorts of problems like the acquire system breaking or simply a problem of which settings to use for them. Beside that this is most likely a mistake and silently ignoring it doesn't help the user realizing his mistake… On the other hand, we have 'duplicates' which are 'created' by how we create indextargets, so we have to prevent those from being created to but do not emit a warning for them as this is an implementation detail. And then, there is the absolute and most likely user mistake: Having the same target(s) activated in multiple entries. --- 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 f267247c1..a09c39057 100644 --- a/apt-pkg/indexfile.h +++ b/apt-pkg/indexfile.h @@ -88,6 +88,7 @@ class IndexTarget /*{{{*/ PDIFFS, COMPRESSIONTYPES, DEFAULTENABLED, + SOURCESENTRY, }; std::string Option(OptionKeys const Key) const; bool OptionBool(OptionKeys const Key) const; -- cgit v1.2.3