summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/hooks/licensing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/hooks/licensing.py b/lib/spack/spack/hooks/licensing.py
index 8e789d9635..739da8bde6 100644
--- a/lib/spack/spack/hooks/licensing.py
+++ b/lib/spack/spack/hooks/licensing.py
@@ -175,7 +175,7 @@ def symlink_license(pkg):
mkdirp(license_dir)
# If example file already exists, overwrite it with a symlink
- if os.path.exists(link_name):
+ if os.path.lexists(link_name):
os.remove(link_name)
if os.path.exists(target):