D24653: discover: check package status before trying to install/update it

Aleksei Nikiforov noreply at phabricator.kde.org
Tue Oct 15 08:34:40 BST 2019


alnikiforov created this revision.
alnikiforov added reviewers: jriddell, apol.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
alnikiforov requested review of this revision.

REVISION SUMMARY
  With latest changes to packagekit, it may now return more packages from 'pkcon get-updates' command with new statuses: "removed" or "obsoleted". This change is needed to filter such packages since Discover is using list of packages similar to the output of mentioned command but ignores package statuses. Otherwise, Discover would try to install all packages, including removed and obsoleted, and fail while trying to resolve such transaction due to package conflicts, if there are such packages present.
  
  packagekit changes:
  https://github.com/hughsie/PackageKit/pull/341

REPOSITORY
  R134 Discover Software Store

REVISION DETAIL
  https://phabricator.kde.org/D24653

AFFECTED FILES
  libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp

To: alnikiforov, jriddell, apol
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191015/48441094/attachment-0001.html>


More information about the Plasma-devel mailing list