Bug 467743

Summary: When opening .deb file, does not offer to update package, only to remove it
Product: [Applications] Discover Reporter: yvan
Component: PackageKitAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate, spzakulec, yvan
Priority: NOR    
Version: 5.27.2   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 6.0

Description yvan 2023-03-24 08:38:10 UTC
SUMMARY
When opening a .deb file, if a previous version of the package is already installed, Discover does not offer to update the package but only to remove it.

STEPS TO REPRODUCE
1. Install some package
2. Fetch the .deb of a newer version of the same package
3. Open this .deb with Discover

OBSERVED RESULT
On right corner, there is only a button to remove the package.

EXPECTED RESULT
There should be a button to install the new package (= update current version).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12 (almost stable)
(available in About System)
KDE Plasma Version: 5.27.2-1
KDE Frameworks Version: 5.103.0-1
Qt Version: 5.15.8

Thanks,
Yvan
Comment 1 yvan 2023-03-24 08:49:59 UTC
More info: if the user clic on the remove button, package is not removed but updated properly. After that, the remove button is still present but clicking on it again has no effect.

Regards,
Yvan
Comment 2 Steve Zakulec 2023-09-22 01:05:06 UTC
Can confirm this is an issue- it regularly shows up with the Discord .deb files. 
I'm on KDE Neon.
Comment 3 Nate Graham 2023-10-11 17:21:37 UTC
Just fixed today by Alessandro Astone with https://invent.kde.org/plasma/discover/-/commit/5e56d98c03d870ab636abd5d10bc3df5cffe9034 for Plasma 6!