From 39c724b4848ef8d85c8c425f982dda85f0df1277 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 8 May 2016 18:03:48 +0200 Subject: implement Identifier field for IndexTargets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A frontend like apt-file is only interested in a specific set of files and selects those easily via "Created-By". If it supports two locations for those files through it would need to select both and a user would need to know that implementation detail for sources.list configuration. The "Identifier" field is hence introduced which by default has the same value as "Created-By", but can be freely configured – especially it can be used to give two indexes the same identifier. --- 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 eaaded87a..76a3d069e 100644 --- a/apt-pkg/indexfile.h +++ b/apt-pkg/indexfile.h @@ -92,6 +92,7 @@ class IndexTarget /*{{{*/ BY_HASH, KEEPCOMPRESSEDAS, FALLBACK_OF, + IDENTIFIER, }; std::string Option(OptionKeys const Key) const; bool OptionBool(OptionKeys const Key) const; -- cgit v1.2.3