[Yum-devel] [PATCH] check for file's existence using os.path.lexist() instead of exist() so we don't misreport symlinks as missing.
Seth Vidal
skvidal at fedoraproject.org
Mon Oct 12 20:56:36 UTC 2009
fixes rh bug: #475054
---
yum/packages.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yum/packages.py b/yum/packages.py
index 7bbb61d..bb0e7ca 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -1380,7 +1380,7 @@ class YumInstalledPackage(YumHeaderPackage):
# do check of file status on system
problems = []
- if os.path.exists(fn):
+ if os.path.lexists(fn):
# stat
my_st = os.lstat(fn)
my_st_size = my_st.st_size
--
1.6.2.5
More information about the Yum-devel
mailing list