Lines Matching +full:symbolic +full:- +full:ref
1 # -*- coding: utf-8 -*-
3 # Use of this source code is governed by a BSD-style license that can be
24 TOOLCHAIN_UTILS_PATH = ('/mnt/host/source/src/third_party/toolchain-utils/'
33 command = ('git ls-remote '
35 'refs/heads/release-R*')
40 mo = re.search(r'refs/heads/release-R(\d+)-(\d+)\.B', line)
49 return 'R%d-%s' % (lower[-1] + 1, lsb_version)
130 command = 'ln -sf -T %s %s' % (latest_image_dir, label)
136 command = 'ln -sf -T %s %s' % (vanilla_path, 'vanilla')
149 usepkg_flag = '--usepkg'
151 usepkg_flag = '--nousepkg'
153 withdebug_flag = '--withdebug'
155 withdebug_flag = '--nowithdebug'
156 return ('%s/build_packages %s --withdev --withtest --withautotest '
157 '--skip_toolchain_update %s --board=%s '
158 '--accept_licenses=@CHROMEOS' % (CHROMEOS_SCRIPTS_DIR, usepkg_flag,
165 dev_args = '--noenable_rootfs_verification --disk_layout=2gb-rootfs'
166 return ('%s/build_image --board=%s %s test' % (CHROMEOS_SCRIPTS_DIR, board,
175 options.append('--usepkg')
177 options.append('--nousepkg')
180 options.append('--force')
182 options.append('--accept-licenses=@CHROMEOS')
184 return 'setup_board --board=%s %s' % (board, ' '.join(options))
236 string = re.sub(r'\x1b\[[0-9]*[a-zA-Z]', '', string)
241 return 'var/cache/distfiles/target/chrome-src/src'
269 command = ('find %s/src/build/images/%s -name chromiumos_test_image.bin' %
290 'var/cache/chromeos-chrome/chrome-src/src/out_%s' % board)
293 logger.GetLogger().LogCmd('rm -rf %s' % out_dir)
296 'var/cache/chromeos-chrome/chrome-src-internal/src/out_%s' % board)
299 logger.GetLogger().LogCmd('rm -rf %s' % out_dir)
319 command = 'cd {0} && git diff --quiet --cached --exit-code HEAD'.format(
326 """Return True if git repository has un-staged changes."""
327 command = 'cd {0} && git diff --quiet --exit-code HEAD'.format(git_dir)
333 """Return True if git repository has un-tracked changes."""
334 command = ('cd {0} && test -z '
335 '$(git ls-files --exclude-standard --others)').format(git_dir)
341 """Return githash for the symbolic git commit.
344 "cros/gcc.gnu.org/branches/gcc/gcc-4_8-mobile, this function returns the git
345 hash for this symbolic name.
349 commit_symbolic_name: a symbolic name for a particular git commit.
352 The git hash for the symbolic name or None if fails.
355 command = ('cd {0} && git log -n 1 --pretty="format:%H" {1}').format(
380 logger.GetLogger().LogWarning('Git tree has un-tracked changes.')
396 command = 'cd {0} && git diff --name-only'.format(git_dir)
398 command += ' --cached'
400 command += ' -- ' + path
411 os.path.join(chromeos_root, 'src/third_party/chromiumos-overlay')) and
430 cmd0 = 'cd {0} && cros_sdk --delete'.format(chromeos_root)
440 'cd $CHROMEOSDIRNAME && sudo rm -fr $CHROMEOSBASENAME'
469 # pylint: disable=import-error, import-outside-toplevel
485 pi_str = '{project}:{ref}'.format(project=pi.project, ref=pi.ref)
533 # pylint: disable=input-builtin, bad-builtin
555 # pylint: disable=unused-argument
557 """Converts RGB values to xterm-256 color."""