From 4b5215e8e2e31637cb0998ecb80d3c3146760579 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 22 Apr 2021 10:45:45 +0200 Subject: json: Add origins fields to version Provide access to the origins of a package, such that tools can display information about them; for example, you can write a hook counting security upgrades. --- doc/json-hooks-protocol.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/json-hooks-protocol.md') diff --git a/doc/json-hooks-protocol.md b/doc/json-hooks-protocol.md index 09633e71d..489b04843 100644 --- a/doc/json-hooks-protocol.md +++ b/doc/json-hooks-protocol.md @@ -106,6 +106,16 @@ install. Each package has the following attributes: - *version*: The version as a string - *architecture*: Architecture of the version - *pin*: The pin priority (optional) + - *origins*: Sources from which the package is retrieved (optional, not in older versions) + + Each origin is represented as an object with the following fields: + + - *archive*: string (optional) + - *codename*: string (optional) + - *version*: string (optional) + - *origin*: string (optional) + - *label*: string (optional) + - *site*: string, empty for local repositories or when using mirror+file:/ method (optional) #### Example -- cgit v1.2.3-70-g09d2