Bug 412273

Summary: notifier should warn about broken systems (packagekit)
Product: [Applications] Discover Reporter: Harald Sitter <sitter>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version: 5.16.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.18.0

Description Harald Sitter 2019-09-24 12:32:59 UTC
AFAICT transactions can exit with PK_EXIT_ENUM_REPAIR_REQUIRED which is to indicate that the system is in a bad state and needs repair (RepairSystem transaction).

The notifier (and probably also the main application) should handle this state and throw up notifications about this with a button to trigger a repair attempt.

Repair required can for example happen when packages failed to install and now the system is in a half-working state with half the packages being installed and the others blocked on a failed dependency. etc.

It's entirely unclear how well this state is communicated from the PK backends, but supposedly if they are not communicating this properly they need fixing as well.
Comment 1 Aleix Pol 2019-10-09 14:03:53 UTC
I don't really see to get a PkExitEnum from a PkTransaction.

For now, I realised that we weren't offering to repair the system when an offline update failed. Will do so now.
Comment 2 Aleix Pol 2019-10-09 14:04:13 UTC
Git commit eb1e950d01578e82844dfbbe063ad176c7a08e43 by Aleix Pol.
Committed on 09/10/2019 at 14:01.
Pushed by apol into branch 'master'.

pk: offer to repair the system when an offline update failed

M  +1    -1    libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp

https://commits.kde.org/discover/eb1e950d01578e82844dfbbe063ad176c7a08e43