Skip to content

Commit

Permalink
Merge pull request #42324 from mmusich/fixCondDB-patch-releases
Browse files Browse the repository at this point in the history
support `conddb` for patch releases in read-only mode
  • Loading branch information
cmsbuild authored Jul 25, 2023
2 parents f2eb83d + 15767a2 commit 955b3a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CondCore/Utilities/python/cond2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def discover(self, payloadType):
devCheckout = (releaseBase != '')
if not devCheckout:
logging.debug('Looks like the current working environment is a read-only release')
if not os.path.exists( libPath ):
if "CMSSW_FULL_RELEASE_BASE" in os.environ:
libDir = os.path.join( os.environ["CMSSW_FULL_RELEASE_BASE"], 'lib', os.environ["SCRAM_ARCH"] )
libPath = os.path.join( libDir, libName )
if not os.path.exists( libPath ) and devCheckout:
# main release ( for dev checkouts )
libDir = os.path.join( releaseBase, 'lib', os.environ["SCRAM_ARCH"] )
Expand Down

0 comments on commit 955b3a0

Please sign in to comment.