[packagekit] how make a percercent on downloading ....

zodman zodman at gmail.com
Fri Feb 13 00:29:02 PST 2009


Im here again :)


Im seen and try some hrs for make a download percent. not success.

Resume:

The backend of conary when do a install/update ( install and update as
the same action). apps. First make a a Job that Job make a path on some
dir ( /var/cache/conary/jobs ). Then apply the Job.

When apply the job conary download a file ( called changeset, its a
binary file with all info and files ) then get files for install the
packages files ( runtime, libs, headers etc ) and write on conary
database ( commit action ). This do in ApplyJob.


Well conary accept a Callbacks so when doing  "apply Job" it can call
the callbacks like


def downloadingChangeSet(self, got, need):

and others stuff

when callback of download the changeset its working a status signal send.

backend.status(STATUS_DOWNLOADING)

i have the bytes downloaded and bytes need for end the download....


How can i make a bar percent for represent  the download of changeset

some like:

DownloadFiles [ ==========          ]  #%%












More information about the PackageKit mailing list