]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Fix if /tools_xxxx already exists.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Jan 2010 14:01:42 +0000 (15:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Jan 2010 14:01:42 +0000 (15:01 +0100)
naoki/chroot.py

index defcc4b5f0cc59ec4a5142b23aece322e1291cfd..64fe8bd0e90fe2110ec12eb00a87190e05edb1ae 100644 (file)
@@ -351,5 +351,7 @@ class Toolchain(object):
                        # If link points to correct destination we break up
                        if os.path.abspath(os.readlink(link)) == destination:
                                return
+                       os.unlink(link)
+
 
                os.symlink(destination, link)