Fix CVS downloads.

This commit is contained in:
Chris Johns
2013-04-21 21:43:17 +10:00
parent 5142becd8e
commit 5f44fcdd1b
2 changed files with 9 additions and 2 deletions

View File

@@ -52,7 +52,9 @@ class repo:
def _run(self, args, check = False, cwd = None):
e = execute.capture_execution()
if path.exists(self.path):
if cwd is None:
if not path.exists(self.path):
raise error.general('cvs path needs to exist: %s' % (self.path))
cwd = self.path
cmd = [self.cvs, '-q'] + args
log.output('cmd: (%s) %s' % (str(cwd), ' '.join(cmd)))