[packagekit] severity information in the yum backend

Richard Hughes hughsient at gmail.com
Tue Jan 1 11:04:28 PST 2008


On Tue, 2008-01-01 at 02:36 -0500, Matthias Clasen wrote:
> After adding the repo to my yum configuration, the update showed up in
> pk-update-viewer, but as a normal
> update. After some poking around (essentially blind poking, I'm a
> Python illiterate), I figured out that the
> yum backend probably needs this patch:
> 
> --- a/backends/yum/helpers/yumBackend.py
> +++ b/backends/yum/helpers/yumBackend.py
> @@ -1059,7 +1059,7 @@ class PackageKitYumBackend(PackageKitBaseBackend):
>              self._updateMetadata = UpdateMetadata()
>              for repo in self.yumbase.repos.listEnabled():
>                  try:
> -                    md.add(repo)
> +                    self._updateMetadata.add(repo)
>                  except:
>                      pass # No updateinfo.xml.gz in repo
>          return self._updateMetadata

I'm python illiterate too. Can any yum dudes give us a hand? Thanks.

Richard.





More information about the PackageKit mailing list