On Thu, 2010-09-09 at 16:04 -0400, James Antill wrote:
> ---
>  yum/yumRepo.py |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/yum/yumRepo.py b/yum/yumRepo.py
> index 37b4b3d..b501d61 100644
> --- a/yum/yumRepo.py
> +++ b/yum/yumRepo.py
> @@ -1314,6 +1314,16 @@ class YumRepository(Repository, config.RepoConf):
>                      os.rename(local, local + '.old.tmp')
>                      reverts.append(local)
>  
> +                    #  This is the super easy way. We just to see if a 
> generated
> +                    # file is there for all files, but it should always work.
> +                    #  And anyone who is giving us MD with blah and 
> blah.sqlite
> +                    # which are different types, can play a game I like to 
> call
> +                    # "come here, ouch".
> +                    gen_local = local + '.sqlite'
> +                    if os.path.exists(gen_local):
> +                        os.rename(gen_local, gen_local + '.old.tmp')
> +                        reverts.append(gen_local)
> +
>              if ndata is None: # Doesn't exist in this repo
>                  continue
>  


ACK

Especially to the comment. :)

-sv



_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to