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 |
|
|