Changeset 0a0d1c8 in rtems-source-builder


Ignore:
Timestamp:
Jun 8, 2017, 5:21:07 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
20bc1ec
Parents:
2c13f00
git-author:
Sebastian Huber <sebastian.huber@…> (06/08/17 05:21:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/08/17 05:59:28)
Message:

sb: Restrict file name length

File:
1 edited

Legend:

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

    r2c13f00 r0a0d1c8  
    185185        #
    186186        source['file'] = re.sub(r'[^a-zA-Z0-9.\-]+', '-', source['file'])
     187        max_file_len = 127
     188        if len(source['file']) > max_file_len:
     189            raise error.general('file name length is greater than %i (maybe use --rsb-file=FILE option): %s' % \
     190                                (max_file_len, source['file']))
    187191    #
    188192    # Check local path
Note: See TracChangeset for help on using the changeset viewer.