commit | 1959322bb3014febda6bbdf38b25c1e39f27a113 | [log] [tgz] |
---|---|---|
author | natalie.chen <natalie.chen@mediatek.com> | Mon Feb 05 20:49:35 2018 +0800 |
committer | natalie.chen <natalie.chen@mediatek.com> | Mon Feb 05 20:49:35 2018 +0800 |
tree | 37d068d83e5c6530b831073d48ee8050303ad5d8 | |
parent | 1db7cb6d8e28e006dba9400f8a7a1b1140c321ad [diff] |
use os.path.lexists to remove broken link
diff --git a/project.py b/project.py index 437edca..878d227 100644 --- a/project.py +++ b/project.py
@@ -1238,7 +1238,7 @@ for dest in old_copylink: if not dest: continue target = os.path.join(self.manifest.topdir, dest) - if os.path.exists(target): + if os.path.lexists(target): if IsTrace(): Trace('rm %s', target) os.remove(target)