aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-12-15 22:41:33 +0000
committersconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-12-15 22:41:33 +0000
commitfc89acf6797f3c642ba608e572a94065897474e9 (patch)
tree7ef10fb4e0595f8f4db3fb08930efdd785f10d4f /src/lib
parentaa919f07553a4e1241b88ec9000b306698f8fc55 (diff)
downloadsos-fc89acf6797f3c642ba608e572a94065897474e9.tar.gz
Removed meaningless error when target of a symlink had already been copied to the destination tree
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@63 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugintools.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py
index eb9a32dc..f6b9e40b 100644
--- a/src/lib/sos/plugintools.py
+++ b/src/lib/sos/plugintools.py
@@ -127,11 +127,12 @@ class PluginBase:
# Recurse to copy whatever it points to
newpath = os.path.normpath(os.path.join(os.path.dirname(srcpath), link))
- if os.path.exists(newpath):
- try:
- self.doCopyFileOrDir(newpath)
- except:
- sys.stderr.write("3Problem at path %s" % newpath)
+ try:
+ self.doCopyFileOrDir(newpath)
+ except EnvironmentError, (errno, strerror):
+ if (errno != 17):
+ # we ignore 'file exists' errors
+ sys.stderr.write("3Problem at path %s\n" % newpath)
sys.stderr.flush()
return abspath