Changeset 692 for branches/0.4/jobmond/jobmond.py
- Timestamp:
- 03/20/13 11:15:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/jobmond/jobmond.py
r691 r692 414 414 if incompatible: 415 415 416 debug_msg( 0, 'Gmetric version not compatible, please upgrade to at least 3. 0.1' )416 debug_msg( 0, 'Gmetric version not compatible, please upgrade to at least 3.4.0' ) 417 417 sys.exit( 1 ) 418 418 … … 420 420 421 421 """ 422 Check version of gmetric is at least 3. 0.1422 Check version of gmetric is at least 3.4.0 423 423 for the syntax we use 424 424 """ … … 429 429 430 430 gfp = os.popen( self.binary + ' --version' ) 431 lines 431 lines = gfp.readlines() 432 432 433 433 gfp.close() … … 453 453 elif version_major == 3: 454 454 455 if version_minor == 0: 456 457 if version_patch < 1: 458 459 incompatible = 1 460 461 # Gmetric 3.0.1 >< 3.0.3 had a bug in the max metric length 462 # 463 if version_patch < 3: 464 465 METRIC_MAX_VAL_LEN = 900 466 467 elif version_patch >= 3: 468 469 METRIC_MAX_VAL_LEN = 1400 470 471 elif version_minor == 1: 472 473 debug_msg( 0, 'Gmetric 3.1 detected, internal gmetric handling disabled. Failing back to gmetric binary' ) 474 475 METRIC_MAX_VAL_LEN = 500 476 477 # We don't speak 3.1 gmetric so use binary 478 # 479 GMETRIC_TARGET = None 455 if version_minor < 4: 456 457 incompatible = 1 458 459 else: 460 461 METRIC_MAX_VAL_LEN = 1400 480 462 481 463 return incompatible
Note: See TracChangeset
for help on using the changeset viewer.