Last commit made on 2021-06-15
Get this branch:
git clone -b 2.0.y https://git.launchpad.net/apt

Branch merges

Branch information


Recent commits

aa0680c... by Julian Andres Klode

Release 2.0.6

53d34b3... by Julian Andres Klode

json: Hook protocol 0.2 (added upgrade,downgrade,reinstall modes)

Hook protocol 0.2 makes the new fields we added mandatory, and
replaces `install` mode with `upgrade`, `downgrade`, `reinstall`
where appropriate.

Hook negotiation is hacky, but it's the best we can do for now.
Users are advised to upgrade to 0.2

(cherry picked from commit 80dd1447595c536d31912c486ac5e96f983ccc7a)
(cherry picked from commit 25cc4d29d27355a8e1beb43570259c46f7430eb9)

b70bbc1... by Julian Andres Klode

json: Add `package-list` and `statistics` install hooks

This enables hooks to output additional information.

(cherry picked from commit dc11a4422d99cb49817c827b9f827617b5880600)
(cherry picked from commit 17633e6b60bcf093447fccb71e0345ca8f4ce756)

8d29ea6... by Julian Andres Klode

upgrade: Add JSON hook support (AptCli::Hooks::Upgrade)

(cherry picked from commit de86a4b076a37db2f70ee5fbfbb295cc71c344df)
(cherry picked from commit 6b9194b8b99fb6ffdd0a5db489d5e31c1c6e6b5d)

73145b4... by Julian Andres Klode

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.

(cherry picked from commit 4b5215e8e2e31637cb0998ecb80d3c3146760579)
(cherry picked from commit e4cab7d633acb320afe53d57596d01bcf49b2ecc)

56ea5a3... by Brian Murray

Fix a typo in json-hooks-protocol.md

(cherry picked from commit 289b7d2e8c8fb1ee4d5ef67a57ca74ce6f19b727)
(cherry picked from commit b94bf145d60df5740b5793a2a9ae97f1a34c313b)

d57f19f... by Julian Andres Klode

test/json: Make the test hook more reliable

Ugh, this was super flaky under -j 16 and -j 4, each behaving
in slightly different ways. This seems to be stable now. No
real bug though, all behaviors were OK.

(cherry picked from commit 329f0cc3654f8d13bbaff71cc400cb9c4154ad53)
(cherry picked from commit c7736967bb498bab8a2fad3223262060e79c94f1)

5a2441b... by Julian Andres Klode

Avoid infinite loop on EOF on media change prompt

The code missed a break, so it was looping infinitely because
the while loop condition only checked for '\n' and '\r', but not
end of file.

(cherry picked from commit 94cf53979640ff8a29d445a2b056a6b17c7b3e49)
(cherry picked from commit 30979216fc4b63996bd5dd4e46db1a3384b6f448)
LP: #1928687

195bcb4... by Julian Andres Klode

test: Set -e in our test hook

Gbp-Dch: ignore
(cherry picked from commit 949f3821268943149ddc26d4eaee3bfbaa1255a9)
(cherry picked from commit b7ec379023614cfd1be058ac6e788ebbdb3e689a)

e0d1e09... by Julian Andres Klode

json: Flush standard file descriptors before calling hooks

This ensures messages are displayed in the correct order.

(cherry picked from commit 0ed07360cd7e229cb458580de1f349d5d9f3568b)
(cherry picked from commit d4b7b085c784616e479844b1960e1aac14537d44)