2 Mar 2011 01:50
Re: [PATCH] Packager.py should take advantage of the parallelism from the package manager.
Lucas Meneghel Rodrigues <lmr <at> redhat.com>
2011-03-02 00:50:47 GMT
2011-03-02 00:50:47 GMT
On Tue, 2011-02-22 at 13:01 -0800, Jean-Marc Eurin wrote: > Packager.py should take advantage of the parallelism from the package manager. > Create the repo directory if it doesn't exists. Applied, thanks! http://autotest.kernel.org/changeset/5273 > Signed-off-by: Jean-Marc Eurin <jmeurin <at> google.com> > > --- autotest/client/common_lib/base_packages.py 2011-02-09 14:25:38.000000000 -0800 > +++ autotest/client/common_lib/base_packages.py 2011-02-22 12:51:10.000000000 -0800 > <at> <at> -28,27 +28,36 <at> <at> > "Incorrect SSH path in global_config: %s" % repo) > > > -def repo_run_command(repo, cmd, ignore_status=False): > +def repo_run_command(repo, cmd, ignore_status=False, cd=True): > """Run a command relative to the repos path""" > repo = repo.strip() > run_cmd = None > + cd_str = '' > if repo.startswith('ssh://'): > username = None > hostline, remote_path = parse_ssh_path(repo) > + if cd: > + cd_str = 'cd %s && ' % remote_path > if ' <at> ' in hostline: > username, host = hostline.split(' <at> ') > - run_cmd = 'ssh %s <at> %s "cd %s && %s"' % (username, host,(Continue reading)
RSS Feed