Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7b76744 in mainline


Ignore:
Timestamp:
2010-03-18T17:34:39Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
3ad309d
Parents:
89c09ae
Message:

be more robust when the bzr binary cannot be executed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r89c09ae r7b76744  
    229229       
    230230        sys.stderr.write("Fetching current revision identifier ... ")
    231         version = subprocess.Popen(['bzr', 'version-info', '--custom', '--template={clean}:{revno}:{revision_id}'], stdout = subprocess.PIPE).communicate()[0].split(':')
    232         sys.stderr.write("OK\n")
     231       
     232        try:
     233                version = subprocess.Popen(['bzr', 'version-info', '--custom', '--template={clean}:{revno}:{revision_id}'], stdout = subprocess.PIPE).communicate()[0].split(':')
     234                sys.stderr.write("ok\n")
     235        except:
     236                version = [1, "unknown", "unknown"]
     237                sys.stderr.write("failed\n")
    233238       
    234239        if (len(version) == 3):
Note: See TracChangeset for help on using the changeset viewer.