diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-21 21:43:17 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-21 21:43:17 +1000 |
commit | 5f44fcdd1b5dad98b30ce401779c2fb9752b741b (patch) | |
tree | c2490fe9d2d8e2c112ccf0aaab0c596436e03240 /source-builder/sb/download.py | |
parent | Refactor the logging support. (diff) | |
download | rtems-source-builder-5f44fcdd1b5dad98b30ce401779c2fb9752b741b.tar.bz2 |
Fix CVS downloads.
Diffstat (limited to 'source-builder/sb/download.py')
-rw-r--r-- | source-builder/sb/download.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py index faf681b..c34b0c0 100644 --- a/source-builder/sb/download.py +++ b/source-builder/sb/download.py @@ -226,7 +226,12 @@ def _cvs_downloader(url, local, config, opts): repo = cvs.repo(local, opts, config.macros, src_prefix) if not repo.valid(): log.notice('cvs: checkout: %s -> %s' % (us[0], rlp)) - if not opts.dry_run(): + if not path.isdir(local): + log.notice('Creating source directory: %s' % \ + (os.path.relpath(path.host(local)))) + log.output('making dir: %s' % (path.host(path.dirname(local)))) + if not opts.dry_run(): + path.mkdir(local) repo.checkout(':%s' % (us[0][6:]), module, tag, date) for a in us[1:]: _as = a.split('=') |