Changeset ed0de00 in rtems-source-builder


Ignore:
Timestamp:
Oct 29, 2012, 3:41:34 PM (9 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
5260449
Parents:
864360e
Message:

Create the sources path if not present and the user has forced.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tb/build.py

    r864360e red0de00  
    120120    def get_file(self, url, local):
    121121        if not os.path.isdir(os.path.dirname(local)):
    122             raise error.general('source path not found: ' + os.path.dirname(local))
     122            if not self.opts.force():
     123                raise error.general('source path not found: %s; (--force to create)' \
     124                                        % (os.path.dirname(local)))
     125            self.mkdir(os.path.dirname(local))
    123126        if not os.path.exists(local):
    124127            #
Note: See TracChangeset for help on using the changeset viewer.