Lucas Meneghel Rodrigues | 2 Mar 2011 01:50
Picon
Favicon
Gravatar

Re: [PATCH] Packager.py should take advantage of the parallelism from the package manager.

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)


Gmane