> >   File "./yum/__init__.py", line 933, in _getTags
> >     self._tags.add(repo.id, tag_sqlite)
> 
>  We call decompress() from here via. repo_gen_decompress() which
>  does:
> 
>     return decompress(filename, dest=dest,
>     check_timestamps=True,fn_only=cached)
> 
> ...so the above patch does nothing.

Not here, but it prevented EACCES in yum-langpacks postreposetup_hook
that runs before we even get there.  Could have simply disabled
that plugin as well, hmm.

> you need the pkgtags data
> to be downloaded when you run via. the cache (I know, I'm a bit dumb
> sometimes) ... but that doesn't happen by default. I guess you have
> mdpolicy=group:all set in yum.conf ?

No, I don't..  After some more investigation, it seems to be more complex
issue.  This issue is triggered with 'yum search -C' when:

1. repo/pkgtags.sqlite.gz exists
2. repo/gen/pkgtags.sqlite does not

There's an unrelated bug (?) in 'yum clean all/metadata' that leaves 
pkgtags.sqlite.gz there but removes gen/pkgtags.sqlite.

>  class PackageTagDB(object):
> +    @catchSqliteException
>      def __init__(self, repoid, sqlite_file):
>          self.sqlite_file = sqlite_file
>          self.repoid = repoid

This seems to work for me, too.
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to