Bug 1226541

Summary: Cockpit Packagekit does not appear in UI
Product: [openSUSE] openSUSE Distribution Reporter: Cody Henderson <cody.henderson>
Component: CockpitAssignee: Cockpit Bugs <Cockpit-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: amajer, cody.henderson
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Cody Henderson 2024-06-19 20:27:25 UTC
After installing cockpit-packagekit the Software Updates tab did not appear.
After doing a little digging it appears to be caused by an incorrect path listed in the manifest for the plugin.

In /usr/share/cockpit/packagekit/manifest.json it has the following conditions:

>    "conditions": [
>        {"path-exists": "/lib/systemd/system/packagekit.service"},
>        {"path-not-exists": "/sysroot/ostree"}
>    ],

The path /lib/systemd/system/packagekit.service does not exist with packagekit installed on the system. Instead it is located at /usr/lib/systemd/system/packagekit.service. If I change that line to the corrected path the Software Update tab then appears and seems to function just fine.
Comment 1 Adam Majer 2024-06-20 07:38:09 UTC
This is the pre-/usr unification that happened on Tumbleweed.

Ideally these manifests support multiple values here.