Summary: | Discover can't detect that an already-installed local package is already installed | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Nate Graham <nate> |
Component: | discover | Assignee: | Dan Leinir Turthra Jensen <leinir> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol |
Priority: | NOR | ||
Version: | 5.23.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/discover/commit/0914a944d315492401b3bb1ef890822e4c7c9600 | Version Fixed In: |
Description
Nate Graham
2021-10-11 21:41:15 UTC
Agreed, I don't think there's API for it though... https://www.freedesktop.org/software/PackageKit/gtk-doc/Transaction.html#Transaction.GetFilesLocal Maybe we can check what files it installs and try to find them in our FS? can we extract the package name from the package file before it gets installed? Or is that the information that's not available. I don't think we can do it in a distro agnostic way. Darn. Comparing local files might be okay then. A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/194 Git commit 4bcb047e977c5daffb751617f0595f602a730053 by Aleix Pol. Committed on 20/10/2021 at 18:24. Pushed by apol into branch 'master'. pk: Try to detect if a local file we are trying to install already is installed So that maybe it can be marked as such when the file gets opened M +42 -27 libdiscover/backends/PackageKitBackend/LocalFilePKResource.cpp M +2 -2 libdiscover/backends/PackageKitBackend/LocalFilePKResource.h M +1 -1 libdiscover/backends/PackageKitBackend/PKTransaction.cpp https://invent.kde.org/plasma/discover/commit/4bcb047e977c5daffb751617f0595f602a730053 Git commit 0914a944d315492401b3bb1ef890822e4c7c9600 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 20/10/2021 at 18:25. Pushed by apol into branch 'Plasma/5.23'. pk: Try to detect if a local file we are trying to install already is installed So that maybe it can be marked as such when the file gets opened (cherry picked from commit 4bcb047e977c5daffb751617f0595f602a730053) M +42 -27 libdiscover/backends/PackageKitBackend/LocalFilePKResource.cpp M +2 -2 libdiscover/backends/PackageKitBackend/LocalFilePKResource.h M +1 -1 libdiscover/backends/PackageKitBackend/PKTransaction.cpp https://invent.kde.org/plasma/discover/commit/0914a944d315492401b3bb1ef890822e4c7c9600 |