Changeset 0a0b3d8 in mainline
- Timestamp:
- 2017-11-13T21:26:59Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8f9bf0
- Parents:
- 0dd4779
- Location:
- tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r0dd4779 r0a0b3d8 460 460 461 461 try: 462 version = subprocess.Popen([' bzr', 'version-info', '--custom', '--template={clean}:{revno}:{revision_id}'], stdout = subprocess.PIPE).communicate()[0].decode().split(':')462 version = subprocess.Popen(['git', 'log', '-1', '--pretty=%h'], stdout = subprocess.PIPE).communicate()[0].decode().strip() 463 463 sys.stderr.write("ok\n") 464 464 except: 465 version = [1, "unknown", "unknown"]465 version = None 466 466 sys.stderr.write("failed\n") 467 467 468 if (not strip_rev_info) and (len(version) == 3): 469 revision = version[1] 470 if version[0] != 1: 471 revision += 'M' 472 revision += ' (%s)' % version[2] 468 if (not strip_rev_info) and (version is not None): 469 revision = version 473 470 else: 474 471 revision = None -
tools/dest_build.py
r0dd4779 r0a0b3d8 38 38 import subprocess 39 39 40 exclude_names = set(['.svn', '.bzr' ])40 exclude_names = set(['.svn', '.bzr', '.git']) 41 41 42 42 def duplicate_tree(src_path, dest_path, current): -
tools/imgutil.py
r0dd4779 r0a0b3d8 36 36 import stat 37 37 38 exclude_names = set(['.svn', '.bzr' ])38 exclude_names = set(['.svn', '.bzr', '.git']) 39 39 40 40 def align_up(size, alignment):
Note:
See TracChangeset
for help on using the changeset viewer.