summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-04-22 10:45:45 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2021-04-23 12:26:46 +0200
commit4b5215e8e2e31637cb0998ecb80d3c3146760579 (patch)
tree0bf71b1dc2a60c88fca02c7fad1a567e1a15f218 /doc
parent949f3821268943149ddc26d4eaee3bfbaa1255a9 (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/json-hooks-protocol.md10
1 files changed, 10 insertions, 0 deletions
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