[Yum-devel] [PATCH] Fix problems with using old generated data (groups/pkgtag/updateinfo).

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Thu Aug 25 15:45:15 UTC 2011


On Wed, Aug 24, 2011 at 11:48 PM, James Antill <james at and.org> wrote:
> ---
>  yum/misc.py |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/yum/misc.py b/yum/misc.py
> index 37c572b..04490a6 100644
> --- a/yum/misc.py
> +++ b/yum/misc.py
> @@ -1114,10 +1114,12 @@ def decompress(filename, dest=None, fn_only=False, check_timestamps=False):
>         if check_timestamps:
>             fi = stat_f(filename)
>             fo = stat_f(out)
> -            if fi and fo and fo.st_mtime > fi.st_mtime:
> +            if fi and fo and fo.st_mtime == fi.st_mtime:
>                 return out
>
>         _decompress_chunked(filename, out, ztype)
> +        if check_timestamps and fi:
> +            os.utime(out, (fi.st_mtime, fi.st_mtime))
>
>     return out
>
> --
> 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