Bug 456342

Summary: Zypper locks not respected when updating packages
Product: [Applications] Discover Reporter: Ellis Kenyo <me>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CLOSED DOWNSTREAM    
Severity: normal CC: aleixpol, fabian, lbeltrame, me, nate
Priority: NOR    
Version First Reported In: 5.25.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ellis Kenyo 2022-07-05 05:12:46 UTC
SUMMARY
Not sure which component this falls under, so apologies if this is wrong but; as per the title really due to a recent regression with the NVIDIA driver, I can't update it.

So I added locks to the packages via yast (verified with zypper ll) in the hopes of being able to still use discover to manage my updates easily.

STEPS TO REPRODUCE
1.  Mark packages as protected in YaST that have updates
2.  Via either the plasma widget or the app, apply any update to a package
3.  The updates still apply

OBSERVED RESULT

No matter what I tried to upgrade, I was still being prompted to accept the NVIDIA licenses and the packages were still installed (thank god for snapper)

EXPECTED RESULT

The locks should have been respected and the updates should have continued without

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 20220703
(available in About System)
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

Applies to both the frontend and the plasma widget, so I assume the issue lies with one of the backends but I haven't used KDE since like KDE 4 so I'm not sure which it is
Comment 1 Nate Graham 2022-07-05 18:22:51 UTC
The Zypper PackageKit backend itself at fault here for not knowing about/respecting Zypper locks. Please report the issue downstream to the openSUSE folks at https://bugzilla.opensuse.org/enter_bug.cgi?classification=openSUSE as I believe that's where bugs on the Zypper PackageKit backend should be filed, if I'm recalling correctly. I'm also CCing some openSUSE folks just in case I'm mistaken.
Comment 2 Ellis Kenyo 2022-07-05 19:47:44 UTC
Thanks Nate! I wasn't sure exactly where I should report but I'll raise one over there