[packagekit] Fix show percentage in Katja backend during download

Sasa Ostrouska casaxa at gmail.com
Mon Dec 8 06:51:41 PST 2014


On Mon, Dec 8, 2014 at 6:24 AM, Richard Hughes <hughsient at gmail.com> wrote:

> On 8 December 2014 at 00:52, Sasa Ostrouska <casaxa at gmail.com> wrote:
> > I believe that dividing by 2 the total tasks and have the percentage
> shown
> > when downloading up to 50% and when installing the other part from 50%
> up to
> > 100% is wrong.
>
> The PackageKit spec says (and the clients expect) that a transaction
> goes from 0% to 100% once, so typically it will do something like
> this:
>
> 0% setup
> 10% downloading
> 20% downloading
> 30% downloading
> 40% downloading
> 50% downloading
> 60% downloading
> 70% installing
> 80% installing
> 90% cleanup
> 100% done!
>
> If you want per-package percentage updates, there's the ItemProgress
> signal that can be used.
>
> Hi Richard, many thanks for the answer, in my opinion it is way more
logical to have it for each task showing the percentage of the completion
of task.
So would be:
Downloading 0-100%
Installing 0-100%

And so on.

Rgds
Saxa


> Richard
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20141208/972367ad/attachment.html>


More information about the PackageKit mailing list