Skip to content
Snippets Groups Projects
Commit b3c8f59b authored by Andre Sailer's avatar Andre Sailer
Browse files

Merge branch 'cherry-pick-2-88e57340-LCG_100-patches' into 'LCG_100-patches'

Sweeping !762 from master to LCG_100-patches.
Use new post-install script to avoid problem with .filelist

See merge request !764
parents ea272228 12872704
No related branches found
No related tags found
1 merge request!764Sweeping !762 from master to LCG_100-patches. Use new post-install script to avoid problem with .filelist
Pipeline #2622279 passed
......@@ -67,6 +67,11 @@ def install_tarfile(urltarfile, prefix, lcgprefix, with_hash=True, with_link=Tru
#---run the post-install------------------------------------------------------
postinstall = os.path.join(install_path, '.post-install.sh')
if os.path.exists(postinstall) :
#---Replace the old post-install script with new one
with open(postinstall) as f:
if '#!/bin/sh' in f.read():
f.close()
shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)),'post-install.sh'), postinstall)
os.environ['INSTALLDIR'] = prefix
if lcgprefix :
os.environ['LCGRELEASES'] = lcgprefix.replace(';',':').replace(' ',':')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment