| Index: buildbot/cbuildbot_commands.py
|
| diff --git a/buildbot/cbuildbot_commands.py b/buildbot/cbuildbot_commands.py
|
| index 3b49f11448052a9934aa503b1a2dd4265283de5c..f79e645f75c5c0b4dd3efdd2e5ec8dc3c4b3f295 100644
|
| --- a/buildbot/cbuildbot_commands.py
|
| +++ b/buildbot/cbuildbot_commands.py
|
| @@ -118,6 +118,34 @@ def PreFlightRinse(buildroot, board, tracking_branch, overlays):
|
| cros_lib.OldRunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
|
|
|
|
|
| +def ManifestCheckout(buildroot, tracking_branch, nextversion,
|
| + retries=_DEFAULT_RETRIES,
|
| + url='ssh://git.chromium.org:9222/manifest-versions'):
|
| + """Performs a manifest checkout and clobbers any previous checkouts."""
|
| +
|
| + print "buildroot %s" % buildroot
|
| + print "tracking_branch %s" % tracking_branch
|
| + print "nextversion %s" % nextversion
|
| + print "url %s" % url
|
| +
|
| + # Assume url is coming in and overriding and set to manifest-versions
|
| + url = os.path.dirname(url) + '/manifest-versions';
|
| +
|
| + branch = tracking_branch.split('/');
|
| + nextversion_subdir = nextversion.split('.');
|
| +
|
| +
|
| + manifest = os.path.join('buildspecs',
|
| + nextversion_subdir[0] + '.' + nextversion_subdir[1],
|
| + nextversion + '.xml')
|
| +
|
| + #print 'MANIFEST:' + manifest;
|
| +
|
| + cros_lib.OldRunCommand(['repo', 'init', '-u', url, '-m', manifest ],
|
| + cwd=buildroot, input='\n\ny\n')
|
| + _RepoSync(buildroot, retries)
|
| +
|
| +
|
| def FullCheckout(buildroot, tracking_branch,
|
| retries=_DEFAULT_RETRIES,
|
| url='http://git.chromium.org/git/manifest'):
|
|
|