[packagekit] yum backend system-update

Richard Hughes hughsient at gmail.com
Thu Aug 30 09:58:39 PDT 2007


On 30/08/2007, Tim Lauridsen <tla at rasmil.dk> wrote:
> I also changed the yum backend to update the percentage more resent on
> download / install / remove / update, but it need the latest upstream
> yum git code to work.

[root at hughsie-laptop src]# rpm -q yum
yum-3.2.4-4.6.20070830git.fc7.hughsie

[root at hughsie-laptop src]# /usr/share/PackageKit/helpers/yum-update-system.py
percentage      0
percentage      10
status  download
Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum-update-system.py", line 18,
in <module>
    backend.update_system()
  File "/usr/share/PackageKit/helpers/yumBackend.py", line 232, in update_system
    self._runYumTransaction()
  File "/usr/share/PackageKit/helpers/yumBackend.py", line 320, in
_runYumTransaction
    rpmDisplay=rpmDisplay)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 2192,
in processTransaction
    callback.event(callbacks.PT_DOWNLOAD)
  File "/usr/share/PackageKit/helpers/yumBackend.py", line 540, in event
    if state == PT_DOWNLOAD_PKGS:   # Packages to download
NameError: global name 'PT_DOWNLOAD_PKGS' is not defined
[root at hughsie-laptop src]# rpm -q yum
yum-3.2.4-4.6.20070830git.fc7.hughsie

Richard.



More information about the PackageKit mailing list