summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/hplink.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-20 23:10:35 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-20 23:10:35 (GMT)
commitc5f5ba58f1c8b4927ee22e3781a19c334352aa45 (patch)
tree0f8aba7fb052a1dfc6efa91287951f007a752892 /src/engine/SCons/Tool/hplink.py
parentcfcbeb6ff0607e5a573768eb1dbaef6fe86089a2 (diff)
downloadSCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.zip
SCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.tar.gz
SCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.tar.bz2
Handle IOError exceptions when pushing files to CacheDir (and elsewhere).
Diffstat (limited to 'src/engine/SCons/Tool/hplink.py')
-rw-r--r--src/engine/SCons/Tool/hplink.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/hplink.py b/src/engine/SCons/Tool/hplink.py
index f3d03c9..5921b39 100644
--- a/src/engine/SCons/Tool/hplink.py
+++ b/src/engine/SCons/Tool/hplink.py
@@ -45,7 +45,9 @@ ccLinker = None
try:
dirs = os.listdir('/opt')
-except OSError:
+except (IOError, OSError):
+ # Not being able to read the directory because it doesn't exist
+ # (IOError) or isn't readable (OSError) is okay.
dirs = []
for dir in dirs: