Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 591802 Details for
Bug 831918
repoquery -C causes URLGrabError: Check uncompressed DB failed
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-misc.decompress-compare-mtime-without-sub-second-pre.patch
0001-misc.decompress-compare-mtime-without-sub-second-pre.patch (text/plain), 1.16 KB, created by
Scott Tsai
on 2012-06-14 10:39:31 UTC
(
hide
)
Description:
0001-misc.decompress-compare-mtime-without-sub-second-pre.patch
Filename:
MIME Type:
Creator:
Scott Tsai
Created:
2012-06-14 10:39:31 UTC
Size:
1.16 KB
patch
obsolete
>From 965a984cc486a57e66e4ab392abb16ce5a435e0f Mon Sep 17 00:00:00 2001 >From: Scott Tsai <scottt.tw@gmail.com> >Date: Thu, 14 Jun 2012 18:34:00 +0800 >Subject: [PATCH] misc.decompress(): compare mtime without sub second > precision > >On Linux filesystems with nano second timestamps, >Python's os.stat() and os.utime() don't guarantee timpestamps >would compare equal when read back (http://bugs.python.org/issue14127). > >This patch reduces timestamp precision to seconds before comparing them. >--- > yum/misc.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/yum/misc.py b/yum/misc.py >index 59aff5d..968b5eb 100644 >--- a/yum/misc.py >+++ b/yum/misc.py >@@ -1135,7 +1135,9 @@ def decompress(filename, dest=None, fn_only=False, check_timestamps=False): > fi = stat_f(filename) > fo = stat_f(out) > if fi and fo: >- if fo.st_mtime == fi.st_mtime: >+ # Eliminate sub second precision in mtime before comparision, >+ # see http://bugs.python.org/issue14127 >+ if int(fo.st_mtime) == int(fi.st_mtime): > return out > if fn_only: > # out exists but not valid >-- >1.7.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 831918
:
591773
| 591802