diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-10-05 12:37:50 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-05 10:37:50 -0700 |
commit | 6ee020cea4040546c4faffc122ec9166868a09ab (patch) | |
tree | 223519e563c5bdb60107213ca8b217ea2a54c354 /lib | |
parent | 95b07c365ce07962eb00eb2c440f78eeb2028d10 (diff) | |
download | spack-6ee020cea4040546c4faffc122ec9166868a09ab.tar.gz spack-6ee020cea4040546c4faffc122ec9166868a09ab.tar.bz2 spack-6ee020cea4040546c4faffc122ec9166868a09ab.tar.xz spack-6ee020cea4040546c4faffc122ec9166868a09ab.zip |
Add package for CONVERGE CFD (#1905)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/hooks/licensing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/hooks/licensing.py b/lib/spack/spack/hooks/licensing.py index 9010b84154..a99099749c 100644 --- a/lib/spack/spack/hooks/licensing.py +++ b/lib/spack/spack/hooks/licensing.py @@ -157,6 +157,11 @@ def symlink_license(pkg): license_dir = os.path.dirname(link_name) if not os.path.exists(license_dir): mkdirp(license_dir) + + # If example file already exists, overwrite it with a symlink + if os.path.exists(link_name): + os.remove(link_name) + if os.path.exists(target): os.symlink(target, link_name) tty.msg("Added local symlink %s to global license file" % |