Files
emb_cli/lib
Joel Winarske 3ce655a566 fix(pkg): retry transient packagekit connect on fresh boot
Right after boot — notably under WSL — the system D-Bus and its
on-demand activation plumbing can be momentarily not-ready. In that
window PkClient.connect() fails near-instantly with
PkServiceUnavailableException (no daemon spawn is even attempted),
which made `emb doctor` report the packagekit backend as permanently
unavailable even though the package was installed and the daemon
activates fine seconds later.

Give _connect() a single retry after a short delay on that specific
exception so a startup race no longer surfaces as a hard failure.
Caching and all callers (isAvailable/missing/simulate/install/
availableUpdates) route through _connect(), so they inherit it.

Signed-off-by: Joel Winarske <joel.winarske@linux.com>
2026-06-20 19:57:50 -07:00
..