diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-23 11:41:49 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-23 11:41:49 +1000 |
commit | 1869040e1683bb87139118883ad59c41ee7f0bcf (patch) | |
tree | 2f2f57ff1ce476629630f3f3a90b426201940c68 /source-builder/sb/cvs.py | |
parent | Fixes for CVS to work. Add RTEMS build for sparc/sis. (diff) | |
download | rtems-source-builder-1869040e1683bb87139118883ad59c41ee7f0bcf.tar.bz2 |
Fix the path for a CVS checkout.
Diffstat (limited to 'source-builder/sb/cvs.py')
-rw-r--r-- | source-builder/sb/cvs.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source-builder/sb/cvs.py b/source-builder/sb/cvs.py index 7ceff05..fb8db49 100644 --- a/source-builder/sb/cvs.py +++ b/source-builder/sb/cvs.py @@ -63,10 +63,9 @@ class repo: def _run(self, args, check = False, cwd = None): e = execute.capture_execution() if cwd is None: - _path = path.join(self.path, self.prefix) - if not path.exists(_path): - raise error.general('cvs path needs to exist: %s' % (_path)) - cwd = _path + cwd = path.join(self.path, self.prefix) + if not path.exists(cwd): + raise error.general('cvs path needs to exist: %s' % (cwd)) cmd = [self.cvs, '-q'] + args log.output('cmd: (%s) %s' % (str(cwd), ' '.join(cmd))) exit_code, proc, output = e.spawn(cmd, cwd = cwd) @@ -96,7 +95,7 @@ class repo: cmd += ['-D', date] if module: cmd += [module] - ec, output = self._run(cmd, check = True) + ec, output = self._run(cmd, check = True, cwd = self.path) def update(self): ec, output = self._run(['up'], check = True) |