[packagekit] severity information in the yum backend

Matthias Clasen matthias.clasen at gmail.com
Mon Dec 31 23:43:05 PST 2007


>
> --- 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

Forgot to mention that this is not quite enough to make update
metadata work, since I still get exceptions from within the bowels of
yum which indicate that the repos in the loop are not sufficiently
setup to work; adding a repo.dirSetup() to the loop seems to fix this,
and I acutally got a (nonworking) "More Information" button now for my
security update...



More information about the PackageKit mailing list