Add support for license prompts
ClosedPublic

Authored by fvogt on Aug 26 2019, 1:24 PM.

Details

Summary

Currently, if a transaction requires accepting a license, it just fails.
This implements a basic dialog (which makes it easier to read the
license than displaying it inline) and the necessary backend
functionality.

It was necessary to move the list of packages out of a QObject property
into a new member to allow restarting the transaction outside of the
onFinished slot.

Test Plan

Downgraded two packages with EULAs and searched for updates.
Hit the install updates button and got two license prompts.
Only after accepting both with the "Yes" button are the updates installed.

Diff Detail

Repository
R623 Plasma PackageKit Updater
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fvogt requested review of this revision.Aug 26 2019, 1:24 PM
fvogt created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Sep 2 2019, 2:10 PM
This revision was automatically updated to reflect the committed changes.