[packagekit] [RFC] Move common python spawning functions to pk-python-backend.[hc]

James Bowes jbowes at dangerouslyinc.com
Tue Oct 23 07:04:21 PDT 2007


Hi all:

Attached is a patch series that:

- takes the standard backend_foo functions from pk-backend-bar and
moves them to
  src/pk-python-backend.[hc]
- updates yum, smart, conary and pisi to use these rather than redeclaring them.

Diffstat:

 backends/conary/helpers/conaryBackend.py |    4 +
 backends/conary/pk-backend-conary.c      |  153 +---------------
 backends/pisi/pk-backend-pisi.c          |  114 +-----------
 backends/smart/pk-backend-smart.c        |   47 +-----
 backends/yum/pk-backend-yum.c            |  283 +++---------------------------
 src/Makefile.am                          |    5 +-
 src/pk-python-backend.c                  |  259 +++++++++++++++++++++++++++
 src/pk-python-backend.h                  |   94 ++++++++++
 8 files changed, 403 insertions(+), 556 deletions(-)

Backend authors, please check to make sure I haven't broken you :)

-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-pk-python-backend-for-common-spawning-functions.patch
Type: text/x-patch
Size: 11529 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-yum-use-pk-python-backend-functions.patch
Type: text/x-patch
Size: 8755 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-smart-use-pk-python-backend-functions.patch
Type: text/x-patch
Size: 2388 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-conary-move-allow-interrupt-into-python.patch
Type: text/x-patch
Size: 2801 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-conary-use-pk-python-backend-functions.patch
Type: text/x-patch
Size: 5312 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-pisi-use-pk-python-backend-functions.patch
Type: text/x-patch
Size: 4380 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/ab28b94e/attachment-0029.bin>


More information about the PackageKit mailing list