[packagekit] How does PK Download Packages?

Tim Lauridsen tim.lauridsen at googlemail.com
Sun Jun 22 03:07:58 PDT 2008


Shishir Goyal wrote:
> Hello,
> 
> I have been trying to implement the service pack functionality for the 
> yum backend.
> 
> I am stuck and need to figure out how actually PK downloads packages ?
> 
> Or as to how download_packages(as=packages, s=directory) in 
> /backends/yum/helpers/yumBackend.py
> can use the existing code through which PK downloads the packages?
> 
> Help.
> 
> Regards
> --Shishir
> 

The attach file should contain the need code to download a list of yum 
packages to at specified destdir.
All you need to do, is use the _find_package to find yum package objects 
for the package_ids and call the attacted code.

Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnl.py
Type: text/x-python
Size: 1196 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080622/24042ec2/attachment-0004.py>


More information about the PackageKit mailing list