On a filesystem with 1s mtime precision a RPM transaction ran
immediately after Yum may alter rpmdb but keep the timestamp.
---
 yum/rpmsack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yum/rpmsack.py b/yum/rpmsack.py
index 56c3793..f8d49f8 100644
--- a/yum/rpmsack.py
+++ b/yum/rpmsack.py
@@ -1152,7 +1152,7 @@ class RPMDBPackageSack(PackageSackBase):
             # See if rpmdb has "changed" ...
             nmtime = os.path.getmtime(rpmdbvfname)
             omtime = os.path.getmtime(rpmdbfname)
-            if omtime <= nmtime:
+            if omtime < nmtime:
                 fo, e = _iopen(rpmdbvfname)
                 if fo is None:
                     return None
-- 
1.7.11.7

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

Reply via email to