[Yum-devel] [PATCH 3/3] Fix mergerepo on generated data (groups/pkgtag/etc.)
tim.lauridsen at gmail.com
tim.lauridsen at gmail.com
Thu Aug 25 16:00:40 UTC 2011
On Wed, Aug 24, 2011 at 11:04 PM, James Antill <james at and.org> wrote:
> ---
> yum/yumRepo.py | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/yum/yumRepo.py b/yum/yumRepo.py
> index 91b7dde..a681370 100644
> --- a/yum/yumRepo.py
> +++ b/yum/yumRepo.py
> @@ -1256,6 +1256,11 @@ Insufficient space in download directory %s
>
> # if we have a 'fresh' repomd.xml then update the cookie
> self.setMetadataCookie()
> + # Also remove any files that are generated ... this can be slightly
> + # non-optimal, in the case where we have to revert, but it's just
> + # sooo much easier to deal with it here.
> + for fname in misc.getFileList(self.cachedir + '/gen', '', []):
> + misc.unlink_f(fname)
>
> if self._repoXML is None:
> self._repoXML = self._parseRepoXML(result)
> --
> 1.7.6
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
ACK
More information about the Yum-devel
mailing list