mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Fixed the errors as found by Gedare.
This commit is contained in:
parent
174d296ffb
commit
d4fa10150a
@ -158,12 +158,12 @@ def copy_tree(src, dst):
|
||||
if os.path.islink(dstname):
|
||||
dstlinkto = os.readlink(dstname)
|
||||
if linkto != dstlinkto:
|
||||
log.warning('copying tree: update of link does not match: %s -> %s: %s' % \
|
||||
log.warning('copying tree: update of link does not match: %s -> %s' % \
|
||||
(dstname, dstlinkto))
|
||||
os.remove(dstname)
|
||||
else:
|
||||
log.warning('copying tree: destination is not a link: %s -> %s: %s' % \
|
||||
(dstname, dstlinkto))
|
||||
log.warning('copying tree: destination is not a link: %s' % \
|
||||
(dstname))
|
||||
os.remove(dstname)
|
||||
else:
|
||||
os.symlink(linkto, dstname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user