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):
|
if os.path.islink(dstname):
|
||||||
dstlinkto = os.readlink(dstname)
|
dstlinkto = os.readlink(dstname)
|
||||||
if linkto != dstlinkto:
|
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))
|
(dstname, dstlinkto))
|
||||||
os.remove(dstname)
|
os.remove(dstname)
|
||||||
else:
|
else:
|
||||||
log.warning('copying tree: destination is not a link: %s -> %s: %s' % \
|
log.warning('copying tree: destination is not a link: %s' % \
|
||||||
(dstname, dstlinkto))
|
(dstname))
|
||||||
os.remove(dstname)
|
os.remove(dstname)
|
||||||
else:
|
else:
|
||||||
os.symlink(linkto, dstname)
|
os.symlink(linkto, dstname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user