mirror of
https://github.com/toyota-connected/emb_cli.git
synced 2026-06-21 07:19:37 -07:00
3ce655a566
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>