[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 8/9] Don't try to unlink a config file that isn't there.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 8/9] Don't try to unlink a config file that isn't there.
- Date: Fri, 4 Mar 2011 12:45:04 -0600
---
pyanaconda/storage/devicetree.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index ca46a8d..1e17a46 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1733,7 +1733,7 @@ class DeviceTree(object):
except (IOError, OSError) as e:
msg = str(e)
log.error("failed to %s of %s: %s" % (op, cfg, msg))
- elif restore:
+ elif restore and os.access(cfg, os.W_OK):
# remove the config since we created it
log.info("removing anaconda-created %s" % cfg)
try:
--
1.7.3.5
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]