vcswatch reports that
this package seems to have new commits in its VCS but has
not yet updated debian/changelog. You should consider updating
the Debian changelog and uploading this new version into the archive.
Here are the relevant commit logs:
commit 2213cf5acfe63d990ff603f342e598842b2c61b0
Merge: 342699ff 74d7137a
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 17:26:32 2026 +0000
Merge branch 'json' into 'main'
Add new JSON library, remove old JSON writer
See merge request apt-team/apt!654
commit 74d7137ae7d63dfee6f878db74ab1150c62faed2
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:14:23 2026 +0100
apt-private: Remove old JSON writer
It was nice to have you friend, but you are no longer needed. I
still recall the days of when I wrote you, having used Android's
JsonWriter class at some point way before you and thinking: Oh
this is a nice stop gap to implement the hooks without introducing
a dependency.
commit c7c7f634ee060a733a9051af6b3075f8157837a6
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:10:07 2026 +0100
apt-private: Use JSON library for JSON hooks
Replace the custom JSON writer and substring handshake parsing with the
new JSON library.
This may break hooks that send invalid JSON responses since the
response parser is now strict.
commit a1eb990c362fee3526e66820552ca735a34af290
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:01:52 2026 +0100
apt-private: Make JSON hook cleanup exception-safe
Various simple DEFER macros that we missed that are I don't want
to say needed for the new JSON code since nothing catches the
exceptions but they certainly don't hurt.
This also ensures that we wait for hooks to complete in all
conditions which is helpful.
commit 99d6c36f24c003bec576b20e2fe29cfceb5f4bfd
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 15:51:22 2026 +0100
json: Introduce reflection
Allow structs to be a reflectable by instantiating the Reflect
template and provide Encode/Decode for Reflectable structs.
commit 71f00004d094a46e48a19d8ff3e2419331e37530
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 15:26:08 2026 +0100
json: Introduce Encode/Decode functionality
The get() function supports a `Decode` concept for custom types to
declare a conversion function, allowing uniform decoding across
all types.
To provide support for decoding into a struct, into() functions
build on the get() to store values into a variable, deducting the
type parameter from the variable;
uint64_t a;
MyStruct b;
auto res = someValue.into(a)
.and_then([&] { return someValue.into(b); });
if (not res)
// Inspect res.error for the error;
I paid some special attention to ensuring [[nodiscard]] is set
on the functions returning std::expected<void, ...> to avoid people
ignoring errors; whereas raw getters don't need it.
Likewise for Encode.
Both have support for non-primitive values too, encoding/decoding
into range-like objects in particular.
commit 14b313a0832cc99550abdd094a881187cc7070a5
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 17:51:54 2026 +0100
json: Introduce the apt-core-json library
This has been designed with a look at most modern C++23 practices;
and safety. It utilizes a View class that is an unowned reference
and a Value that is a mutating owner.
It is the first in a set of new libraries that are built as
position-independent static libraries to be linked into other
pieces. No API or ABI stability is guaranteed.
We use json-c as the backing library. We had a second implementation
using sd-json, however it's a bit wild to keep the json-c one around
just for Hurd basically, completely untested, so we only keep the
json-c backend.
The json-c tokenizer is a bit of a shit show; it accepts NUL bytes
in strings, single quoted strings, so we added some logic to detect
and reject those to only accept syntax that is within the specification.
commit 6db452cece443ecbf32606f21049631f8819011c
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 17:39:03 2026 +0100
test: Rename json_test.cc to jsonwriter_test.cc
This prepares for the new JSON library
commit 3c0b7be5ad59ed16344ca0fcf41ba0ec3ebb15d8
Author: Julian Andres Klode <jak@debian.org>
Date: Sun Nov 22 11:19:35 2026 +0100
CMake: Add some warning overrides
commit 3203defaec9ab3314312bfff8b4018cd7488667e
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 20:15:22 2026 +0100
clang-format: Do not break before lambdas or template decls
God this bugged me for ages. It's the same as Allman style
AFAICT, except it does not break lambdas and allows templates
and requires on same line.
commit 342699ffa1c52cb3fd9b9c0a9b0561ad8e46d170
Merge: d08ed246 4e0ec9da
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 20:18:58 2026 +0000
Merge branch 'acquire-fixes' into 'main'
acquire: Refactor URI decoding, fix spinning
See merge request apt-team/apt!652
commit 4e0ec9da909f0be19059047c453798e45978750f
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 14:58:16 2026 +0100
acquire: Avoid scheduler spins for deferred acquire items
Only force an immediate select when Cycle has queued new work. A retry
deferred by a conflicting URI would otherwise repeatedly trigger a
zero-timeout select until the active request finishes.
commit 761912617fa43842b0b0ed5a187682d2ded19ee9
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 14:51:13 2026 +0100
acquire: Refactor URI decoding
Factor legacy URI decoding out of Queue::FindItem into MethodURI,
providing the URI sent to methods for later scheduler checks.
commit d08ed24612619af5aa0092d209d475124bac788d
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 21:14:11 2026 +0100
Update SECURITY.md
Include OpenPGP keys in the package, offer Launchpad bugs as an easier
alternative, and encourage reporting complex multi-step processes in
bullet points rather than prose.
commit 6b11e862605da88ea4d446a418a706f3a5fe524c
Merge: 2142cf67 7702126c
Author: Julian Andres Klode <jak@debian.org>
Date: Tue Nov 17 17:55:19 2026 +0000
Merge branch 'upgrade-on-battery' into 'main'
debian: Let unattended-upgrade decide about battery power
See merge request apt-team/apt!641
commit 7702126c1c3831d9fa1b51e00a5dffbb17f6d8fa
Author: Johan Walles <johan.walles@gmail.com>
Date: Mon Oct 26 21:14:21 2026 +0100
debian: Let unattended-upgrade decide about battery power
ConditionACPower=true keeps both services from ever starting on
battery, so laptops that are only on battery while awake never get
unattended upgrades.
unattended-upgrade has checked the power source itself since 1.3
(2018), before starting and between upgrade steps, so the condition
only duplicates that check. From 2.14 on it can also upgrade above a
battery threshold, MinBatteryLevel.
apt-daily.service needs to run too, or the package lists go stale.
Refreshing them doesn't touch installed packages.
Tested on a MacBookPro16,1 on battery, with these units and
unattended-upgrades 2.12 with OnlyOnACPower "true": apt-daily.service
refreshed the package lists, and unattended-upgrade logged "System is
on battery power, stopping" without updating the upgrade stamp.
Related: https://launchpad.net/bugs/2089151
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>