Skip to content

Commit

Permalink
Merge pull request #8638 from cms-sw/smuzaffar-patch-2
Browse files Browse the repository at this point in the history
SCRAMV1: Do not update scram links.db via package installation
  • Loading branch information
smuzaffar authored Aug 7, 2023
2 parents 270a428 + 58181e0 commit 3da2049
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SCRAMV1.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM lcg SCRAMV1 V3_00_61
### RPM lcg SCRAMV1 V3_00_62
## NOCOMPILER
## NO_VERSION_SUFFIX

Expand Down Expand Up @@ -66,7 +66,6 @@ if [ ! -d $RPM_INSTALL_PREFIX/etc/scramrc ] ; then
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw.map
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw-patch/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw-patch.map
echo 'CORAL=$SCRAM_ARCH/cms/coral/CORAL_*' > $RPM_INSTALL_PREFIX/etc/scramrc/coral.map
[ ! -f $RPM_INSTALL_PREFIX/%{OldDB} ] || grep '%{OldDB} *$' $RPM_INSTALL_PREFIX/%{OldDB} | awk '{print $2}' | sed 's|%{OldDB}.*||' > $RPM_INSTALL_PREFIX/etc/scramrc/links.db
fi

touch $RPM_INSTALL_PREFIX/etc/scramrc/site.cfg
Expand Down

0 comments on commit 3da2049

Please sign in to comment.