Commit a596206a authored by Andreas Beckmann's avatar Andreas Beckmann Committed by Guido Günther

PkgPolicy.symlink_orig: also remove dangling symlinks

parent 702a5420
......@@ -155,7 +155,7 @@ class PkgPolicy(object):
err.append(f)
continue
try:
if os.path.exists(dst) and force:
if os.path.lexists(dst) and force:
os.unlink(dst)
os.symlink(src, dst)
except OSError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment