diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-08-30 22:34:28 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-08-30 22:50:55 +0200 |
commit | 3090ae6972fd0e15767a96708c248f3ab87502f2 (patch) | |
tree | 64784316160820e1673cd2810aad6a2b370fd809 /apt-pkg/deb/debmetaindex.h | |
parent | c4d1ab98921cddc8bd01f1e23ec1f4f9e7d2a90a (diff) |
detect and deal with indextarget duplicates
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.
Diffstat (limited to 'apt-pkg/deb/debmetaindex.h')
-rw-r--r-- | apt-pkg/deb/debmetaindex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/deb/debmetaindex.h b/apt-pkg/deb/debmetaindex.h index bba0e344f..419cbdc9d 100644 --- a/apt-pkg/deb/debmetaindex.h +++ b/apt-pkg/deb/debmetaindex.h @@ -59,7 +59,8 @@ class APT_HIDDEN debReleaseIndex : public metaIndex virtual bool IsTrusted() const APT_OVERRIDE; - void AddComponent(bool const isSrc, std::string const &Name, + void AddComponent(std::string const &sourcesEntry, + bool const isSrc, std::string const &Name, std::vector<std::string> const &Targets, std::vector<std::string> const &Architectures, std::vector<std::string> Languages, |