ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/cms_cmssw.py
(Generate patch)

Comparing COMP/CRAB/python/cms_cmssw.py (file contents):
Revision 1.111 by farinafa, Tue Aug 7 15:06:49 2007 UTC vs.
Revision 1.112 by corvo, Thu Aug 9 16:53:21 2007 UTC

# Line 40 | Line 40 | class Cmssw(JobType):
40          self.fjrFileName = 'crab_fjr.xml'
41  
42          self.version = self.scram.getSWVersion()
43 +        
44 +        #
45 +        # Try to block creation in case of arch/version mismatch
46 +        #
47 +
48 +        a = string.split(self.version, "_")
49 +
50 +        if int(a[1]) == 1 and (int(a[2]) < 5 and self.executable_arch.find('slc4') == 0):
51 +            msg = "Error: CMS does not support %s with %s architecture"%(self.version, self.executable_arch)
52 +            raise CrabException(msg)
53 +        if int(a[1]) == 1 and (int(a[2]) >= 5 and self.executable_arch.find('slc3') == 0):
54 +            msg = "Error: CMS does not support %s with %s architecture"%(self.version, self.executable_arch)
55 +            raise CrabException(msg)
56 +        
57          common.taskDB.setDict('codeVersion',self.version)
58          self.setParam_('application', self.version)
59  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines