[yum-commits] yum/misc.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Oct 7 10:22:25 UTC 2013


 yum/misc.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 36de4b6c4f38dddff834b11af4a930c77e16d489
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Oct 7 12:19:44 2013 +0200

    unlink_f(): handle ENOENT, EPERM, EACCES, EROFS. BZ 1015647
    
    The best thing about error codes is that there are so many of em!

diff --git a/yum/misc.py b/yum/misc.py
index 7dcd215..b817cc0 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -951,7 +951,7 @@ def unlink_f(filename):
     try:
         os.unlink(filename)
     except OSError, e:
-        if e.errno not in (errno.ENOENT, errno.EPERM, errno.EROFS):
+        if e.errno not in (errno.ENOENT, errno.EPERM, errno.EACCES, errno.EROFS):
             raise
 
 def stat_f(filename, ignore_EACCES=False):


More information about the Yum-commits mailing list