Changeset 5f44fcd in rtems-source-builder


Ignore:
Timestamp:
Apr 21, 2013, 11:43:17 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f077b2b
Parents:
5142bec
Message:

Fix CVS downloads.

Location:
source-builder/sb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/cvs.py

    r5142bec r5f44fcd  
    5353    def _run(self, args, check = False, cwd = None):
    5454        e = execute.capture_execution()
    55         if path.exists(self.path):
     55        if cwd is None:
     56            if not path.exists(self.path):
     57                raise error.general('cvs path needs to exist: %s' % (self.path))
    5658            cwd = self.path
    5759        cmd = [self.cvs, '-q'] + args
  • source-builder/sb/download.py

    r5142bec r5f44fcd  
    227227    if not repo.valid():
    228228        log.notice('cvs: checkout: %s -> %s' % (us[0], rlp))
    229         if not opts.dry_run():
     229        if not path.isdir(local):
     230            log.notice('Creating source directory: %s' % \
     231                           (os.path.relpath(path.host(local))))
     232            log.output('making dir: %s' % (path.host(path.dirname(local))))
     233            if not opts.dry_run():
     234                path.mkdir(local)
    230235            repo.checkout(':%s' % (us[0][6:]), module, tag, date)
    231236    for a in us[1:]:
Note: See TracChangeset for help on using the changeset viewer.