Per the bug report by Ronan Barzic, corrected the staging_install.py
script to correctly support LINK_TARGETS=none.
diff --git a/VERSION b/VERSION
index 59e9e60..bb83058 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.11
+1.0.12
diff --git a/common/staging_install.py b/common/staging_install.py
index 3e13cb0..2994ac0 100755
--- a/common/staging_install.py
+++ b/common/staging_install.py
@@ -317,9 +317,9 @@
# absolute pathname.
stagingdir = os.path.abspath(stagingdir)
- # If link_from is the same as localdir, then set link_from to None
- if link_from == localdir:
- link_from = None
+ # If link_from is the same as localdir, then set link_from to None
+ if link_from == localdir:
+ link_from = None
# checkdir is the DIST target directory for the PDK pointed
# to by link_name. Files must be found there before creating
@@ -411,7 +411,7 @@
# match (Note: This is done only for ngspice model files; other tool files are
# generally small and deemed unnecessary to make symbolic links).
- if link_from != 'source':
+ if link_from and link_from != 'source':
thispdk = os.path.split(targetdir)[1]
# Only create links for PDKs other than the one we are making links to.
@@ -472,7 +472,7 @@
# file "sources.txt" with the name of the source directories for each
# install directory.
- if link_from == 'source':
+ if link_from and link_from == 'source':
print('Replacing files with symbolic links to source where possible.')
for refdir in refdirs:
if ef_format: