lcginstall: fix for outdated links
This is should fix issues like
03:16:11 [030 / 079] Start installation process for hepmc3-3.2.7
03:16:11 Checking that /cvmfs/sft.cern.ch/lcg/latest/hepmc3/3.2.7-5b1eb/x86_64-el9-gcc13-opt exists
03:16:11 Checking that symbolic link /cvmfs/sft-nightlies.cern.ch/lcg/nightlies/devgeantv/Tue/hepmc3/3.2.7/x86_64-el9-gcc13-opt exists
03:16:11 Create symbolic link /cvmfs/sft-nightlies.cern.ch/lcg/nightlies/devgeantv/Tue/hepmc3/3.2.7/x86_64-el9-gcc13-opt->../../../../../../../sft.cern.ch/lcg/latest/hepmc3/3.2.7-5b1eb/x86_64-el9-gcc13-opt
03:16:11 Traceback (most recent call last):
03:16:11 File "/var/spool/cvmfs/sft-nightlies.cern.ch/sftnight/build/workspace/lcg_nightly_pipeline/lcgcmake/jenkins/lcginstall.py", line 240, in createLinks
03:16:11 os.symlink(frompath, topath)
03:16:11 FileExistsError: [Errno 17] File exists: '../../../../../../../sft.cern.ch/lcg/latest/hepmc3/3.2.7-5b1eb/x86_64-el9-gcc13-opt' -> '/cvmfs/sft-nightlies.cern.ch/lcg/nightlies/devgeantv/Tue/hepmc3/3.2.7/x86_64-el9-gcc13-opt'
03:16:11
03:16:11 During handling of the above exception, another exception occurred:
03:16:11
03:16:11 Traceback (most recent call last):
03:16:11 File "/var/spool/cvmfs/sft-nightlies.cern.ch/sftnight/build/workspace/lcg_nightly_pipeline/lcgcmake/jenkins/lcginstall.py", line 502, in <module>
03:16:11 main()
03:16:11 File "/var/spool/cvmfs/sft-nightlies.cern.ch/sftnight/build/workspace/lcg_nightly_pipeline/lcgcmake/jenkins/lcginstall.py", line 467, in main
03:16:11 installation.install(package, force=force)
03:16:11 File "/var/spool/cvmfs/sft-nightlies.cern.ch/sftnight/build/workspace/lcg_nightly_pipeline/lcgcmake/jenkins/lcginstall.py", line 273, in install
03:16:11 rc = rc and self.createLinks(datapath2, linkpath, updatelinks=self.updatelinks)
03:16:11 File "/var/spool/cvmfs/sft-nightlies.cern.ch/sftnight/build/workspace/lcg_nightly_pipeline/lcgcmake/jenkins/lcginstall.py", line 245, in createLinks
03:16:11 raise RuntimeError("Error during managing symlinks: " + str(e))
03:16:11 RuntimeError: Error during managing symlinks: [Errno 17] File exists: '../../../../../../../sft.cern.ch/lcg/latest/hepmc3/3.2.7-5b1eb/x86_64-el9-gcc13-opt' -> '/cvmfs/sft-nightlies.cern.ch/lcg/nightlies/devgeantv/Tue/hepmc3/3.2.7/x86_64-el9-gcc13-opt'
03:16:11 there is an error installing the packages. Let's give it a chance though ...