[packagekit] Package signal after install, remove and update

Sebastian Heinlein glatzor at ubuntu.com
Tue Apr 14 04:28:02 PDT 2009


Am Dienstag, den 14.04.2009, 10:17 +0100 schrieb Richard Hughes:

> What about if I add something like this:
> 
> ---
> 
> A typical transaction will emit many signals. These different signals
> are needed for different reasons:
> 
> * ::StatusChanged(): The global state of the transaction, which will be
> useful for some GUIs. Examples include downloading or installing, and
> this is designed to be a 40,000ft view of what is happening.
> 
> * ::Package(): Used to either return a result (e.g. returning results of
> the SearchName() method) or to return progress about a _specific_
> package. For instance, when doing UpdateSystem(),
> sending ::Package(downloading) and then ::Package(installing) for each
> package as processed in the transaction allows a GUI to position the
> cursor on the worked on package and show the correct icon for that
> package.
> 
> * ::ErrorCode(): to show an error to the user about the transaction,
> which can be cleaned up before sending ::Finished()
> 
> * ::Finished(): to show the transaction has finished, and others can be
> scheduled

Sounds good.

I already implemented this in the apt backend.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20090414/48b26817/attachment-0004.pgp>


More information about the PackageKit mailing list